org.apache.ws.jaxme.xs.xml.impl
Class XsTAllImpl

java.lang.Object
  extended by org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl
      extended by org.apache.ws.jaxme.xs.xml.impl.XsTOpenAttrsImpl
          extended by org.apache.ws.jaxme.xs.xml.impl.XsTAnnotatedImpl
              extended by org.apache.ws.jaxme.xs.xml.impl.XsTAllImpl
All Implemented Interfaces:
XsAGDefRef, XsAGOccurs, XsGParticle, XsObject, XsTAll, XsTAnnotated, XsTExplicitGroup, XsTGroup, XsTOpenAttrs, XsTParticle, XsTTypeDefParticle

public class XsTAllImpl
extends XsTAnnotatedImpl
implements XsTAll

Implementation of the following type:

   <xs:complexType name="all">
     <xs:annotation>
       <xs:documentation>
         Only elements allowed inside
       </xs:documentation>
     </xs:annotation>
     <xs:complexContent>
       <xs:restriction base="xs:explicitGroup">
         <xs:group ref="xs:allModel"/>
         <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="1"/>
             </xs:restriction>
           </xs:simpleType>
         </xs:attribute>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
 

Author:
Jochen Wiedmann

Constructor Summary
protected XsTAllImpl(XsObject pParent)
           
 
Method Summary
 XsTAll createAll()
           
 XsEAny createAny()
           
 XsEChoice createChoice()
           
 XsTLocalElement createElement()
           
 XsTGroupRef createGroup()
           
 XsESequence createSequence()
           
 int getMaxOccurs()
          -1 for 'unbounded'
 int getMinOccurs()
           
 XsNCName getName()
           
 XsTParticle[] getParticles()
           
 XsQName getRef()
           
 void setMaxOccurs(java.lang.String pMaxOccurs)
          Either of 'unbounded' or a nonnegative integer value.
 void setMinOccurs(int pMinOccurs)
           
 void setName(XsNCName pName)
           
 void setRef(java.lang.String pRef)
           
 void setRef(XsQName pRef)
           
 void validate()
          Validates the internal state of the type, attribute, element, or whatever object.
 
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
 
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
 

Constructor Detail

XsTAllImpl

protected XsTAllImpl(XsObject pParent)
Method Detail

setName

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

getName

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

setRef

public void setRef(XsQName pRef)
Specified by:
setRef in interface XsAGDefRef

setRef

public void setRef(java.lang.String pRef)
            throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getRef

public XsQName getRef()
Specified by:
getRef in interface XsAGDefRef

setMaxOccurs

public void setMaxOccurs(java.lang.String pMaxOccurs)
Description copied from interface: XsAGOccurs

Either of 'unbounded' or a nonnegative integer value.

Specified by:
setMaxOccurs in interface XsAGOccurs

getMaxOccurs

public int getMaxOccurs()
Description copied from interface: XsAGOccurs

-1 for 'unbounded'

Specified by:
getMaxOccurs in interface XsAGOccurs

setMinOccurs

public void setMinOccurs(int pMinOccurs)
Specified by:
setMinOccurs in interface XsAGOccurs

getMinOccurs

public int getMinOccurs()
Specified by:
getMinOccurs in interface XsAGOccurs

createElement

public XsTLocalElement createElement()
Specified by:
createElement in interface XsGParticle

createGroup

public XsTGroupRef createGroup()
Specified by:
createGroup in interface XsGParticle

createAll

public XsTAll createAll()
Specified by:
createAll in interface XsGParticle

createSequence

public XsESequence createSequence()
Specified by:
createSequence in interface XsGParticle

createChoice

public XsEChoice createChoice()
Specified by:
createChoice in interface XsGParticle

createAny

public XsEAny createAny()
Specified by:
createAny in interface XsGParticle

getParticles

public XsTParticle[] getParticles()
Specified by:
getParticles in interface XsGParticle

validate

public void validate()
              throws org.xml.sax.SAXException
Description copied from interface: XsObject
Validates the internal state of the type, attribute, element, or whatever object.

Specified by:
validate in interface XsAGDefRef
Specified by:
validate in interface XsAGOccurs
Specified by:
validate in interface XsObject
Overrides:
validate in class XsObjectImpl
Throws:
org.xml.sax.SAXException