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

Class XsEListImpl

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

XsEListImpl(XsObject pParent)

Method Summary

XsTLocalSimpleType
createSimpleType()
XsQName
getItemType()
XsTLocalSimpleType
getSimpleType()
void
setItemType(String pItemType)
void
setItemType(XsQName pItemType)
void
validate()

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, validate

Constructor Details

XsEListImpl

protected XsEListImpl(XsObject pParent)

Method Details

createSimpleType

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

getItemType

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

getSimpleType

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

setItemType

public void setItemType(String pItemType)
            throws SAXException

setItemType

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

validate

public void validate()
            throws SAXException
Specified by:
validate in interface XsObject
Overrides:
validate in interface XsObjectImpl