|
||||||||||
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.type.SOMType
com.bea.schema.SOMUserDefinedType
com.bea.schema.SOMComplexType
<complexType> This class acts as a wrapper to complexType elements. A Complex Type is a set of attribute declarations and a content type that respectively pertain to the attributes and children of the element type that's being specified
Field Summary |
Fields inherited from class com.bea.schema.type.SOMType |
ANYURI, BASE64BINARY, BINARY, BOOLEAN, BYTE, CDATA, CENTURY, DATE, DATETIME, DECIMAL, DOUBLE, DURATION, ENTITIES, ENTITY, FLOAT, GDAY, GMONTH, GMONTHDAY, GYEAR, GYEARMONTH, HEXBINARY, ID, IDREF, IDREFS, INT, INTEGER, LANGUAGE, LONG, MONTH, NAME, NCNAME, NEGATIVEINTEGER, NMTOKEN, NMTOKENS, NONNEGATIVEINTEGER, NONPOSITIVEINTEGER, NORMALIZEDSTRING, NOTATION, NUMBER, POSITIVEINTEGER, QNAME, RECURRINGDATE, RECURRINGDAY, RECURRINGDURATION, SHORT, STRING, TIME, TIMEDURATION, TIMEINSTANT, TIMEPERIOD, TOKEN, UNSIGNEDBYTE, UNSIGNEDINT, UNSIGNEDLONG, UNSIGNEDSHORT, URIREFERENCE, YEAR |
Constructor Summary | |
SOMComplexType()
|
|
SOMComplexType(String name)
|
Method Summary | |
SOMAttribute |
addAttribute(SOMAttribute attribute)
add an <attribute> to this complexType. |
SOMAttribute |
addAttribute(String name)
|
SOMAttribute |
addAttribute(String name,
SOMType type)
|
SOMAttributeGroup |
addAttributeGroup(SOMAttributeGroup attributeGrp)
add an <attributeGroup> to this complexType. |
SOMComplexContent |
addComplexContent(SOMExtension extension)
|
SOMComplexContent |
addComplexContent(SOMRestriction restriction)
|
SOMSequence |
addSequence()
|
SOMSimpleContent |
addSimpleContent(SOMExtension extension)
|
SOMSimpleContent |
addSimpleContent(SOMRestriction restriction)
|
boolean |
contains(SOMObject child)
Determine if an object is child of this element. |
void |
createDefault(DefaultDocumentOptions options,
Element current)
|
String |
getAbstract()
|
Iterator |
getAttributeElements()
returns an iterator over SOMAttribute(s) children |
Iterator |
getAttributeGroups()
returns an iterator over SOMAttributeGroup(s) children |
Map |
getAttributes(boolean getAll)
retrieve the attributes for this schema element. |
String |
getBlock()
|
SOMSimpleContent |
getContent()
a reference to the content type for this complexType |
String |
getFinal()
|
SOMGroupType |
getGroup()
a reference to the group for this complexType |
String |
getID()
<xsd:anyType> |
String |
getMixed()
|
Iterator |
listAttributesExtended()
iterator over all attribute elements for this complexType. |
SOMAttribute |
removeAttribute(SOMAttribute attr)
remove an attribute sub-element. |
SOMAttributeGroup |
removeAttributeGroup(SOMAttributeGroup attr)
remove an attribute sub-element. |
SOMSimpleContent |
removeContent()
remove the previously set content, simpleContent or complexContent. |
SOMGroupType |
removeGroup()
remove the previously set group-type. |
void |
setAbstract(String p_abstract)
set the abstract attribute for this complexType |
void |
setBlock(String p_block)
|
SOMSimpleContent |
setContent(SOMSimpleContent p_content)
Method for setting simpleContent or complexContent within the complexType. |
void |
setFinal(String p_final)
|
SOMGroupType |
setGroup(SOMGroupType p_group)
|
void |
setMixed(boolean p_mixed)
|
void |
setMixed(String p_mixed)
|
void |
toXML(Writer rtn,
int indent)
Outputs a formatted XML representation of SOMObject. |
Methods inherited from class com.bea.schema.SOMUserDefinedType |
addAnnotation, addAnnotation, addDocumentation, getAnnotation, getName, isElementalType, isUserDefinedType, removeAnnotation, setName |
Methods inherited from class com.bea.schema.type.SOMType |
getAllowedFacets, getType |
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 SOMComplexType()
public SOMComplexType(String name)
Method Detail |
public String getID()
SOMType
getID
in class SOMType
public void setAbstract(String p_abstract)
p_abstract
- the value for the abstract attributepublic void setBlock(String p_block)
p_block
-
public void setFinal(String p_final)
p_final
-
public void setMixed(String p_mixed)
public void setMixed(boolean p_mixed)
public String getAbstract()
public String getBlock()
public String getFinal()
public String getMixed()
public SOMGroupType getGroup()
public SOMSimpleContent getContent()
public Iterator getAttributeElements()
public Iterator getAttributeGroups()
public Iterator listAttributesExtended()
public Map getAttributes(boolean getAll)
getAttributes
in class SOMUserDefinedType
getAll
- get all attributes
public SOMSimpleContent addSimpleContent(SOMRestriction restriction)
public SOMSimpleContent addSimpleContent(SOMExtension extension)
public SOMComplexContent addComplexContent(SOMRestriction restriction)
public SOMComplexContent addComplexContent(SOMExtension extension)
public SOMSimpleContent setContent(SOMSimpleContent p_content)
p_content
- takes a SimpleContent object or ComplexContent object
public SOMGroupType setGroup(SOMGroupType p_group)
public SOMSequence addSequence()
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 attributeGrp)
public SOMGroupType removeGroup()
public SOMSimpleContent removeContent()
public SOMAttribute removeAttribute(SOMAttribute attr)
attr
-
public SOMAttributeGroup removeAttributeGroup(SOMAttributeGroup attr)
attr
-
public boolean contains(SOMObject child)
child
- the object in question
public void toXML(Writer rtn, int indent) throws IOException
SOMObject
toXML
in class SOMType
IOException
public void createDefault(DefaultDocumentOptions options, Element current)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |