|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl org.apache.ws.jaxme.xs.xml.impl.XsTOpenAttrsImpl org.apache.ws.jaxme.xs.xml.impl.XsTAnnotatedImpl org.apache.ws.jaxme.xs.xml.impl.XsTComplexTypeImpl
public class XsTComplexTypeImpl
Base implementation 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>
Constructor Summary | |
---|---|
protected |
XsTComplexTypeImpl(XsObject pParent)
|
Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsTAnnotatedImpl |
---|
createAnnotation, getAnnotation, getId, setId |
Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsTOpenAttrsImpl |
---|
getOpenAttributes, setAttribute |
Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl |
---|
asXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsTAnnotated |
---|
createAnnotation, getAnnotation, getId, setId |
Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsTOpenAttrs |
---|
getOpenAttributes |
Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsObject |
---|
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, validate |
Constructor Detail |
---|
protected XsTComplexTypeImpl(XsObject pParent)
Method Detail |
---|
public XsDerivationSet getFinal()
public void setFinal(XsDerivationSet pFinal)
public XsESimpleContent createSimpleContent()
createSimpleContent
in interface XsTComplexType
public XsESimpleContent getSimpleContent()
getSimpleContent
in interface XsTComplexType
public XsEComplexContent createComplexContent()
createComplexContent
in interface XsTComplexType
public XsEComplexContent getComplexContent()
getComplexContent
in interface XsTComplexType
public XsTGroupRef createGroup()
createGroup
in interface XsGTypeDefParticle
public XsTAll createAll()
createAll
in interface XsGTypeDefParticle
public XsEChoice createChoice()
createChoice
in interface XsGTypeDefParticle
public XsESequence createSequence()
createSequence
in interface XsGTypeDefParticle
public XsTTypeDefParticle getTypeDefParticle()
getTypeDefParticle
in interface XsGTypeDefParticle
public XsTAttribute createAttribute()
XsGAttrDecls
Creates a new instance of XsTAttribute
.
createAttribute
in interface XsGAttrDecls
public XsTAttribute[] getAttributes()
XsGAttrDecls
Returns an array of all attributes created by
XsGAttrDecls.createAttribute()
.
getAttributes
in interface XsGAttrDecls
public XsTAttributeGroupRef createAttributeGroup()
XsGAttrDecls
Creates a new instance of XsTAttributeGroup
.
createAttributeGroup
in interface XsGAttrDecls
public XsTAttributeGroupRef[] getAttributeGroups()
XsGAttrDecls
Returns an array of all attribute groups created by
XsGAttrDecls.createAttributeGroup()
;
getAttributeGroups
in interface XsGAttrDecls
public XsTWildcard createAnyAttribute()
XsGAttrDecls
Creates a new instance of XsTWildcard
.
createAnyAttribute
in interface XsGAttrDecls
public XsTWildcard getAnyAttribute()
XsGAttrDecls
Returns the instance created by XsGAttrDecls.createAnyAttribute()
,
or null, if the method wasn't called.
getAnyAttribute
in interface XsGAttrDecls
public java.lang.Object[] getAllAttributes()
XsGAttrDecls
Returns all objects created by XsGAttrDecls.createAttribute()
,
XsGAttrDecls.createAttributeGroup()
, or XsGAttrDecls.createAnyAttribute()
,
in the order of the corresponding method calls.
getAllAttributes
in interface XsGAttrDecls
public void setName(XsNCName pName)
setName
in interface XsTComplexType
public XsNCName getName()
getName
in interface XsTComplexType
public boolean isAbstract()
isAbstract
in interface XsTComplexType
public void setAbstract(boolean pAbstract)
setAbstract
in interface XsTComplexType
public boolean isMixed()
isMixed
in interface XsTComplexType
public void setMixed(boolean pMixed)
setMixed
in interface XsTComplexType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |