|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.schema.SOMObject
com.bea.schema.SOMExtension
<extension> This class acts as a wrapper to extension elements.
Constructor Summary | |
SOMExtension(SOMType base)
Constructs a new <extension> element of a given base type. |
Method Summary | |
SOMAnnotation |
addAnnotation(SOMAnnotation annotation)
|
SOMAttribute |
addAttribute(SOMAttribute attribute)
add an <attribute> to this complexType. |
SOMAttribute |
addAttribute(String name)
|
SOMAttribute |
addAttribute(String name,
SOMType type)
|
SOMAttributeGroup |
addAttributeGroup(SOMAttributeGroup attribute)
add an <attributeGroup> to this complexType. |
boolean |
contains(SOMObject child)
Determine if an object is child of this element. |
void |
createDefault(DefaultDocumentOptions options,
Element current)
Not implemented. |
SOMAnnotation |
getAnnotation()
|
Iterator |
getAttributeElements()
returns an iterator over SOMAttribute(s) children. |
Iterator |
getAttributeGroups()
returns an iterator over SOMAttributeGroup(s) children An extension will not have both Attribute(s) and AttributeGroup(s). |
Map |
getAttributes(boolean getAll)
retrieve the attributes for this schema element. |
SOMType |
getBase()
get the base attribute |
String |
getID()
Returns a printable element tag for this Schema Object |
Iterator |
listAttributesExtended()
iterator over all attribute elements for this extension. |
void |
removeAllAttributeGroups()
remove an all attribute sub-elements. |
void |
removeAllAttributes()
remove an all attribute sub-elements. |
SOMAnnotation |
removeAnnotation()
set the annotation for this type to null. |
SOMAttribute |
removeAttribute(SOMAttribute attr)
remove an attribute sub-element. |
SOMAttributeGroup |
removeAttributeGroup(SOMAttributeGroup attr)
remove an attribute group sub-element. |
void |
setBase(SOMType type)
set the base type attribute |
void |
setBase(String type)
performs a type lookup for the type name. |
void |
toXML(Writer rtn,
int indent)
Outputs a formatted XML representation of SOMObject. |
Methods inherited from class com.bea.schema.SOMObject |
addPrefixMapping, getContainmentXPath, getEffectivePrefixMappings, getID_UQ, getParent, getParentName, getParentSchema, getPrefixForTargetNamespace, getPrefixMapping, getTargetNamespace, getURIForPrefix, isCircularReference, isSchemaChild, msg, msg, removeNamespaceQualifier, removePrefixMapping, setIndent, setParent, setTargetNamespace, toString, toXML, toXML, toXML |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SOMExtension(SOMType base)
base
- type to be extended.Method Detail |
public void setBase(SOMType type)
type
- basepublic void setBase(String type)
type
- type name to lookuppublic SOMType getBase()
public String getID()
SOMObject
getID
in class SOMObject
public SOMAnnotation addAnnotation(SOMAnnotation annotation)
public SOMAnnotation getAnnotation()
public SOMAnnotation removeAnnotation()
public Iterator getAttributeElements()
public Iterator getAttributeGroups()
public Iterator listAttributesExtended()
public Map getAttributes(boolean getAll)
getAll
- get all attributes
public SOMAttribute addAttribute(String name)
public SOMAttribute addAttribute(String name, SOMType type)
public SOMAttribute addAttribute(SOMAttribute attribute)
attribute
- the attribute to add
public SOMAttributeGroup addAttributeGroup(SOMAttributeGroup attribute)
attribute
- the attributeGroup to add
public SOMAttribute removeAttribute(SOMAttribute attr)
attr
-
public void removeAllAttributes()
public SOMAttributeGroup removeAttributeGroup(SOMAttributeGroup attr)
attr
-
public void removeAllAttributeGroups()
public boolean contains(SOMObject child)
child
- the object in question
public void toXML(Writer rtn, int indent) throws IOException
SOMObject
toXML
in class SOMObject
rtn
- printable XML Schemaindent
- the indent level for formatting at which to start this schema object.
IOException
- if IOExcpetion is thrown by underlying java.io.Writerpublic void createDefault(DefaultDocumentOptions options, Element current)
options
- current
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |