|
||||||||||
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.SOMGroupType
Abstract base class for all schema group types
Constructor Summary | |
SOMGroupType()
|
Method Summary | |
SOMAll |
add(SOMAll newChild)
|
SOMAny |
add(SOMAny newChild)
|
SOMChoice |
add(SOMChoice newChild)
|
SOMElement |
add(SOMElement newChild)
|
SOMGroup |
add(SOMGroup newChild)
|
SOMSequence |
add(SOMSequence newChild)
|
SOMAnnotation |
addAnnotation(SOMAnnotation annotation)
add an annotation. |
SOMElement |
addElement(String name)
|
SOMElement |
addElement(String name,
SOMType type)
|
boolean |
contains(SOMObject child)
Determine if an object is child of this element. |
abstract void |
createDefault(DefaultDocumentOptions options,
Element current)
|
SOMAnnotation |
getAnnotation()
get the annotation for this group. |
Map |
getAttributes(boolean getAll)
retrieve the attributes for this schema element. |
Iterator |
getChildren()
get the iterator over the child elements of this group-type |
String |
getChildrenString()
list the children in a comma separated string. |
int |
getMaxOccurs()
maxOccurs attribute |
String |
getMaxOccursString()
String representation of maxOccurs attribute |
int |
getMinOccurs()
minOccurs attribute. |
String |
getMinOccursString()
String representation of the minOccurs attribute value |
SOMObject |
remove(SOMObject child)
remove a child sub-element. |
SOMAnnotation |
removeAnnotation()
set the annotation at this group to null. |
void |
setMaxOccurs(int maxOccurs)
The maxOccurs attribute. |
void |
setMaxOccurs(String maxOccurs)
The maxOccurs attribute for schema element. |
void |
setMinOccurs(int minOccurs)
The minOccurs attribute. |
void |
setMinOccurs(String minOccurs)
The minOccurs 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, getID, 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 SOMGroupType()
Method Detail |
public SOMElement addElement(String name)
public SOMElement addElement(String name, SOMType type)
public SOMElement add(SOMElement newChild)
public SOMChoice add(SOMChoice newChild)
public SOMGroup add(SOMGroup newChild)
public SOMSequence add(SOMSequence newChild)
public SOMAll add(SOMAll newChild)
public SOMAny add(SOMAny newChild)
public SOMAnnotation addAnnotation(SOMAnnotation annotation)
annotation
- a previously created annotation
public SOMAnnotation getAnnotation()
public SOMAnnotation removeAnnotation()
public SOMObject remove(SOMObject child)
child
- the object that it is be removed
public Iterator getChildren()
public String getChildrenString()
public int getMinOccurs()
public String getMinOccursString()
public int getMaxOccurs()
public String getMaxOccursString()
public void setMinOccurs(String minOccurs)
minOccurs
- a nonNegativeIntegerpublic void setMinOccurs(int minOccurs)
minOccurs
- a nonNegativeIntegerpublic void setMaxOccurs(String maxOccurs)
maxOccurs
- a nonNegativeInteger or "unbounded"public void setMaxOccurs(int maxOccurs)
Any negative number is treated as "unbounded"
maxOccurs
- a nonNegativeInteger or -1 (unbounded)public boolean contains(SOMObject child)
child
- the object in question
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.Writerpublic abstract void createDefault(DefaultDocumentOptions options, Element current)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |