public interface XsTComplexType extends XsTAnnotated, XsGTypeDefParticle, XsGAttrDecls, XsRedefinable
Interface of a complex type, to be shared
by XsTLocalComplexType
and
XsTComplexType
.
Follows this specification:
<xs:complexType name="complexType" abstract="true"> <xs:complexContent> <xs:extension base="xs:annotated"> <xs:group ref="xs:complexTypeModel"/> <xs:attribute name="name" type="xs:NCName"> <xs:annotation> <xs:documentation> Will be restricted to required or forbidden </xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute name="mixed" type="xs:boolean" use="optional" default="false"> <xs:annotation> <xs:documentation> Not allowed if simpleContent child is chosen. May be overriden by setting on complexContent child. </xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute name="abstract" type="xs:boolean" use="optional" default="false"/> <xs:attribute name="final" type="xs:derivationSet"/> <xs:attribute name="block" type="xs:derivationSet"/> </xs:extension> </xs:complexContent> </xs:complexType> <xs:group name="complexTypeModel"> <xs:choice> <xs:element ref="xs:simpleContent"/> <xs:element ref="xs:complexContent"/> <xs:sequence> <xs:annotation> <xs:documentation> This branch is short for <complexContent> <restriction base="xs:anyType"> ... </restriction> </complexContent> </xs:documentation> </xs:annotation> <xs:group ref="xs:typeDefParticle" minOccurs="0"/> <xs:group ref="xs:attrDecls"/> </xs:sequence> </xs:choice> </xs:group> <xs:group name="typeDefParticle"> <xs:annotation> <xs:documentation> 'complexType' uses this </xs:documentation> </xs:annotation> <xs:choice> <xs:element name="group" type="xs:groupRef"/> <xs:element ref="xs:all"/> <xs:element ref="xs:choice"/> <xs:element ref="xs:sequence"/> </xs:choice> </xs:group>
Modifier and Type | Method and Description |
---|---|
XsEComplexContent |
createComplexContent() |
XsESimpleContent |
createSimpleContent() |
XsEComplexContent |
getComplexContent() |
XsNCName |
getName() |
XsESimpleContent |
getSimpleContent() |
boolean |
isAbstract() |
boolean |
isMixed() |
void |
setAbstract(boolean pAbstract) |
void |
setMixed(boolean pMixed) |
void |
setName(XsNCName pName) |
createAnnotation, getAnnotation, getId, setId
getOpenAttributes
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, validate
createAll, createChoice, createGroup, createSequence, getTypeDefParticle
createAnyAttribute, createAttribute, createAttributeGroup, getAllAttributes, getAnyAttribute, getAttributeGroups, getAttributes
void setMixed(boolean pMixed)
boolean isMixed()
void setAbstract(boolean pAbstract)
boolean isAbstract()
XsESimpleContent createSimpleContent()
XsESimpleContent getSimpleContent()
XsEComplexContent createComplexContent()
XsEComplexContent getComplexContent()
void setName(XsNCName pName)
XsNCName getName()