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

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.XsEListImpl
All Implemented Interfaces:
XsEList, XsObject, XsTAnnotated, XsTOpenAttrs

public class XsEListImpl
extends XsTAnnotatedImpl
implements XsEList

Implementation of xs:list, following the specification below:

  <xs:element name="list" id="list">
    <xs:complexType>
      <xs:annotation>
        <xs:documentation
            source="http://www.w3.org/TR/xmlschema-2/#element-list">
          itemType attribute and simpleType child are mutually
          exclusive, but one or other is required
        </xs:documentation>
      </xs:annotation>
      <xs:complexContent>
        <xs:extension base="xs:annotated">
          <xs:sequence>
            <xs:element name="simpleType" type="xs:localSimpleType"
                minOccurs="0"/>
          </xs:sequence>
          <xs:attribute name="itemType" type="xs:QName" use="optional"/>
        </xs:extension>
      </xs:complexContent>
    </xs:complexType>
  </xs:element>
 

Author:
Jochen Wiedmann

Constructor Summary
protected XsEListImpl(XsObject pParent)
           
 
Method Summary
 XsTLocalSimpleType createSimpleType()
           
 XsQName getItemType()
           
 XsTLocalSimpleType getSimpleType()
           
 void setItemType(java.lang.String pItemType)
           
 void setItemType(XsQName pItemType)
           
 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

XsEListImpl

protected XsEListImpl(XsObject pParent)
Method Detail

setItemType

public void setItemType(XsQName pItemType)
Specified by:
setItemType in interface XsEList

setItemType

public void setItemType(java.lang.String pItemType)
                 throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getItemType

public XsQName getItemType()
Specified by:
getItemType in interface XsEList

createSimpleType

public XsTLocalSimpleType createSimpleType()
Specified by:
createSimpleType in interface XsEList

getSimpleType

public XsTLocalSimpleType getSimpleType()
Specified by:
getSimpleType in interface XsEList

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 XsObject
Overrides:
validate in class XsObjectImpl
Throws:
org.xml.sax.SAXException