public class XsGAllModelImpl extends XsTAnnotatedImpl implements XsGAllModel
Implementation of xs:allModel
, as specified by
the following:
<xs:group name="allModel"> <xs:sequence> <xs:element ref="xs:annotation" minOccurs="0"/> <xs:element name="element" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:annotation> <xs:documentation>restricted max/min</xs:documentation> </xs:annotation> <xs:complexContent> <xs:restriction base="xs:localElement"> <xs:sequence> <xs:element ref="xs:annotation" minOccurs="0"/> <xs:choice minOccurs="0"> <xs:element name="simpleType" type="xs:localSimpleType"/> <xs:element name="complexType" type="xs:localComplexType"/> </xs:choice> <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="minOccurs" use="optional" default="1"> <xs:simpleType> <xs:restriction base="xs:nonNegativeInteger"> <xs:enumeration value="0"/> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="maxOccurs" use="optional" default="1"> <xs:simpleType> <xs:restriction base="xs:allNNI"> <xs:enumeration value="0"/> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:restriction> </xs:complexContent> </xs:complexType> </xs:element> </xs:sequence> </xs:group>
Implementation note: The above restriction of a XsTLocalElement
is interpreted as a usual local element, except that the minOccurs
and maxOccurs
attributes must be 0 or 1.
Modifier | Constructor and Description |
---|---|
protected |
XsGAllModelImpl(XsObject pParent) |
Modifier and Type | Method and Description |
---|---|
XsTLocalElement |
createElement() |
XsTLocalElement[] |
getElements() |
createAnnotation, getAnnotation, getId, setId
getOpenAttributes, setAttribute
asXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAnnotation, getAnnotation
getOpenAttributes
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, validate
protected XsGAllModelImpl(XsObject pParent)
public XsTLocalElement createElement()
createElement
in interface XsGAllModel
public XsTLocalElement[] getElements()
getElements
in interface XsGAllModel