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

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.XsTGroupImpl
                  extended bynet.sf.jaxme.xs.xml.impl.XsTRealGroupImpl
All Implemented Interfaces:
XsAGDefRef, XsAGOccurs, XsGParticle, XsObject, XsTAnnotated, XsTGroup, XsTOpenAttrs, XsTRealGroup
Direct Known Subclasses:
XsTGroupRefImpl

public class XsTRealGroupImpl
extends XsTGroupImpl
implements XsTRealGroup

Implementation of the xs:realGroup type, as specified by the following:

  <xs:complexType name="realGroup">
    <xs:complexContent>
      <xs:restriction base="xs:group">
        <xs:sequence>
          <xs:element ref="xs:annotation" minOccurs="0"/>
          <xs:choice minOccurs="0" maxOccurs="1">
            <xs:element ref="xs:all"/>
            <xs:element ref="xs:choice"/>
            <xs:element ref="xs:sequence"/>
          </xs:choice>
        </xs:sequence>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>
 

Implementation note: This interface does not define any additional methods. However, the validate() method must ensure, that either of xs:all, xs:choice, or xs:sequence is set.

Author:
Jochen Wiedmann

Constructor Summary
protected XsTRealGroupImpl(XsObject pParent)
           
 
Method Summary
 XsTAll createAll()
           
 XsEAny createAny()
           
 XsEChoice createChoice()
           
 XsTLocalElement createElement()
           
 XsTGroupRef createGroup()
           
 XsESequence createSequence()
           
 void validate()
          Validates whether the attribute groups constraints are met.
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsTGroupImpl
getMaxOccurs, getMinOccurs, getName, getParticles, getRef, setMaxOccurs, setMinOccurs, setName, setRef, setRef
 
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
 
Methods inherited from interface net.sf.jaxme.xs.xml.XsAGDefRef
getName, getRef, setName, setRef
 
Methods inherited from interface net.sf.jaxme.xs.xml.XsAGOccurs
getMaxOccurs, getMinOccurs, setMaxOccurs, setMinOccurs
 
Methods inherited from interface net.sf.jaxme.xs.xml.XsGParticle
getParticles
 

Constructor Detail

XsTRealGroupImpl

protected XsTRealGroupImpl(XsObject pParent)
Method Detail

createGroup

public XsTGroupRef createGroup()
Specified by:
createGroup in interface XsGParticle
Overrides:
createGroup in class XsTGroupImpl

createAny

public XsEAny createAny()
Specified by:
createAny in interface XsGParticle
Overrides:
createAny in class XsTGroupImpl

createElement

public XsTLocalElement createElement()
Specified by:
createElement in interface XsGParticle
Overrides:
createElement in class XsTGroupImpl

createSequence

public XsESequence createSequence()
Specified by:
createSequence in interface XsGParticle
Overrides:
createSequence in class XsTGroupImpl

createChoice

public XsEChoice createChoice()
Specified by:
createChoice in interface XsGParticle
Overrides:
createChoice in class XsTGroupImpl

createAll

public XsTAll createAll()
Specified by:
createAll in interface XsGParticle
Overrides:
createAll in class XsTGroupImpl

validate

public void validate()
Description copied from interface: XsAGDefRef

Validates whether the attribute groups constraints are met.

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