|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.schema.SOMObject com.bea.schema.SOMAttributeGroup
<attributeGroup> The XML representation for an attribute group definition schema component is an <attributeGroup> element information item. It provides for naming a group of attribute declarations and an attribute wildcard for use by reference in the XML representation of complex type definitions and other attribute group definitions.
Constructor Summary | |
SOMAttributeGroup()
|
|
SOMAttributeGroup(SOMAttributeGroup ref,
SOMObject parent)
Construct an <attributeGroup> reference |
|
SOMAttributeGroup(String name,
SOMObject parent)
|
Method Summary | |
SOMAttribute |
add(SOMAttribute attribute)
add an <attribute> sub-element. |
SOMAttributeGroup |
add(SOMAttributeGroup attributeGroup)
add an <attributeGroup> sub-element. |
SOMAnnotation |
addAnnotation(SOMAnnotation annotation)
add an annotation. |
SOMAttribute |
addAttribute(String name)
add an new <attribute> sub-element. |
SOMAttributeGroup |
addAttributeGroup(String name)
add an new <attributeGroup> sub-element. |
boolean |
contains(SOMObject child)
Determine if an object is child of this element. |
Iterator |
getAttributeElements()
get the iterator over the attribute elements |
Map |
getAttributes(boolean getAll)
retrieve the attributes for this schema element. |
String |
getID()
Returns a printable element tag for this Schema Object |
String |
getName()
get the "name" attribute. |
SOMReference |
getRef()
get the "ref" attribute. |
String |
getRefName()
|
boolean |
isRef()
Is this element a reference to another element. |
Iterator |
listAttributesExtended()
iterator over all attribute elements. |
SOMAttribute |
remove(SOMAttribute child)
remove an attribute child. |
SOMAttributeGroup |
remove(SOMAttributeGroup child)
remove an attribute child. |
SOMAnnotation |
removeAnnotation()
set the annotation at this group to null. |
void |
setName(String name)
set the "name" attribute. |
void |
setRef(SOMReference ref)
set the "ref" attribute. |
void |
setRef(SOMUnresolvedReference attrGrp)
set the "ref" attribute. |
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 SOMAttributeGroup()
public SOMAttributeGroup(String name, SOMObject parent)
public SOMAttributeGroup(SOMAttributeGroup ref, SOMObject parent)
ref
- <attributeGroup ref="...">Method Detail |
public void setName(String name)
name
- the attributeGroup namepublic void setRef(SOMReference ref)
setRef
in interface SOMReference
public void setRef(SOMUnresolvedReference attrGrp)
attrGrp
- the attributeGroup to referencepublic String getName()
getName
in interface SOMReference
public boolean isRef()
public SOMReference getRef()
public String getRefName()
public String getID()
SOMObject
getID
in interface SOMReference
getID
in class SOMObject
public SOMAttribute addAttribute(String name)
For example:
<attributeGroup name="myAttrGrp> <attribute name="style" type="xsd:string"> <attributeGroup/>
name
- the attribute name
public SOMAttributeGroup addAttributeGroup(String name)
name
- the attribute name
public SOMAttribute add(SOMAttribute attribute)
For example:
<attributeGroup name="myAttrGrp> <attribute name="style" type="xsd:string"> <attributeGroup/>
attribute
- the attribute reference to be added
public SOMAttributeGroup add(SOMAttributeGroup attributeGroup)
For example:
<attributeGroup name="anotherAttrGrp> <attributeGroup ref="myAttrGrp"> <attributeGroup/>
attributeGroup
- the attributeGroup reference to be added
public SOMAnnotation addAnnotation(SOMAnnotation annotation)
annotation
- a previously created annotation
public SOMAnnotation removeAnnotation()
public SOMAttribute remove(SOMAttribute child)
child
- the object that it is be removed
public SOMAttributeGroup remove(SOMAttributeGroup child)
child
- the object that it is be removed
public boolean contains(SOMObject child)
contains
in interface SOMReference
child
- the object in question
public Iterator getAttributeElements()
public Iterator listAttributesExtended()
public Map getAttributes(boolean getAll)
getAll
- get all attributes
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.Writer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |