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

Class XsEAnnotationImpl

Implemented Interfaces:
XsEAnnotation, XsObject, XsTOpenAttrs

public class XsEAnnotationImpl
extends XsTOpenAttrsImpl
implements XsEAnnotation

Implementation of xs:annotation, as specified by the following:
  <xs:element name="annotation" id="annotation">
    <xs:annotation>
      <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-annotation"/>
    </xs:annotation>
    <xs:complexType>
      <xs:complexContent>
        <xs:extension base="xs:openAttrs">
          <xs:choice minOccurs="0" maxOccurs="unbounded">
            <xs:element ref="xs:appinfo"/>
            <xs:element ref="xs:documentation"/>
          </xs:choice>
          <xs:attribute name="id" type="xs:ID"/>
        </xs:extension>
      </xs:complexContent>
    </xs:complexType>
  </xs:element>
 
Author:
Jochen Wiedmann

Constructor Summary

XsEAnnotationImpl(XsObject pParent)

Method Summary

protected void
addChild(Object pChild)
XsEAppinfo
createAppinfo()
Creates a new 'appinfo' child element.
XsEDocumentation
createDocumentation()
Creates a new 'documentation' child element.
XsEAppinfo[]
getAppinfos()
Returns all the 'appinfo' child elements in the order of creation by XsEAnnotation.createAppinfo().
ContentHandler
getChildHandler(String pQName, String pNamespaceURI, String pLocalName)
Object[]
getChilds()
Returns all the annotations child elements in the order of creation.
XsEDocumentation[]
getDocumentations()
Returns all the 'documentation' child elements in the order of creation by XsEAnnotation.createDocumentation().
XsID
getId()
void
setId(XsID pId)

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

XsEAnnotationImpl

protected XsEAnnotationImpl(XsObject pParent)

Method Details

addChild

protected void addChild(Object pChild)

createAppinfo

public XsEAppinfo createAppinfo()
Creates a new 'appinfo' child element.
Specified by:
createAppinfo in interface XsEAnnotation

createDocumentation

public XsEDocumentation createDocumentation()
Creates a new 'documentation' child element.
Specified by:
createDocumentation in interface XsEAnnotation

getAppinfos

public XsEAppinfo[] getAppinfos()
Returns all the 'appinfo' child elements in the order of creation by XsEAnnotation.createAppinfo().
Specified by:
getAppinfos in interface XsEAnnotation

getChildHandler

public ContentHandler getChildHandler(String pQName,
                                      String pNamespaceURI,
                                      String pLocalName)
            throws SAXException

getChilds

public Object[] getChilds()
Returns all the annotations child elements in the order of creation.
Specified by:
getChilds in interface XsEAnnotation

getDocumentations

public XsEDocumentation[] getDocumentations()
Returns all the 'documentation' child elements in the order of creation by XsEAnnotation.createDocumentation().
Specified by:
getDocumentations in interface XsEAnnotation

getId

public XsID getId()
Specified by:
getId in interface XsEAnnotation

setId

public void setId(XsID pId)
Specified by:
setId in interface XsEAnnotation