net.sf.jaxme.xs.xml.impl
Class XsTNamedGroupImpl

java.lang.Object
  extended bynet.sf.jaxme.xs.xml.impl.XsObjectImpl
      extended bynet.sf.jaxme.xs.xml.impl.XsTOpenAttrsImpl
          extended bynet.sf.jaxme.xs.xml.impl.XsTAnnotatedImpl
              extended bynet.sf.jaxme.xs.xml.impl.XsTNamedGroupImpl
All Implemented Interfaces:
XsObject, XsRedefinable, XsTAnnotated, XsTNamedGroup, XsTOpenAttrs

public class XsTNamedGroupImpl
extends XsTAnnotatedImpl
implements XsTNamedGroup

Implementation of a named top-level group, with the following specification:

  <xs:complexType name="namedGroup">
    <xs:annotation>
      <xs:documentation>
        Should derive this from realGroup, but too complicated for now
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element ref="xs:annotation" minOccurs="0"/>
      <xs:choice minOccurs="1" maxOccurs="1">
        <xs:element name="all">
          <xs:complexType>
            <xs:complexContent>
              <xs:restriction base="xs:all">
                <xs:group ref="xs:allModel"/>
                <xs:attribute name="minOccurs" use="prohibited"/>
                <xs:attribute name="maxOccurs" use="prohibited"/>
              </xs:restriction>
            </xs:complexContent>
          </xs:complexType>
        </xs:element>
        <xs:element name="choice" type="xs:simpleExplicitGroup"/>
        <xs:element name="sequence" type="xs:simpleExplicitGroup"/>
      </xs:choice>
    </xs:sequence>
    <xs:attribute name="name" use="required" type="xs:NCName"/>
    <xs:attribute name="ref" use="prohibited"/>
    <xs:attribute name="minOccurs" use="prohibited"/>
    <xs:attribute name="maxOccurs" use="prohibited"/>
  </xs:complexType>
 </pre></p>

Author:
Jochen Wiedmann

Constructor Summary
protected XsTNamedGroupImpl(XsObject pParent)
           
 
Method Summary
 XsGAllModel createAll()
           
 XsTSimpleExplicitGroup createChoice()
           
 XsTSimpleExplicitGroup createSequence()
           
 XsGAllModel getAll()
           
 XsTSimpleExplicitGroup getChoice()
           
 XsNCName getName()
           
 XsTSimpleExplicitGroup getSequence()
           
 void setName(XsNCName pName)
           
 void validate()
          Validates the types, attributes, elements, ... internal state.
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsTAnnotatedImpl
createAnnotation, getAnnotation, getId, setId
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsTOpenAttrsImpl
getOpenAttributes, setAttribute
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsObjectImpl
asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jaxme.xs.xml.XsTAnnotated
createAnnotation, getAnnotation, getId, setId
 
Methods inherited from interface net.sf.jaxme.xs.xml.XsObject
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject
 

Constructor Detail

XsTNamedGroupImpl

protected XsTNamedGroupImpl(XsObject pParent)
Method Detail

setName

public void setName(XsNCName pName)
Specified by:
setName in interface XsTNamedGroup

getName

public XsNCName getName()
Specified by:
getName in interface XsTNamedGroup

createAll

public XsGAllModel createAll()
Specified by:
createAll in interface XsTNamedGroup

getAll

public XsGAllModel getAll()
Specified by:
getAll in interface XsTNamedGroup

createSequence

public XsTSimpleExplicitGroup createSequence()
Specified by:
createSequence in interface XsTNamedGroup

getSequence

public XsTSimpleExplicitGroup getSequence()
Specified by:
getSequence in interface XsTNamedGroup

createChoice

public XsTSimpleExplicitGroup createChoice()
Specified by:
createChoice in interface XsTNamedGroup

getChoice

public XsTSimpleExplicitGroup getChoice()
Specified by:
getChoice in interface XsTNamedGroup

validate

public void validate()
Description copied from interface: XsObject

Validates the types, attributes, elements, ... internal state.

Specified by:
validate in interface XsObject
Overrides:
validate in class XsObjectImpl