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

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.XsEAnnotationImpl
All 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
protected XsEAnnotationImpl(XsObject pParent)
           
 
Method Summary
protected  void addChild(java.lang.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().
 org.xml.sax.ContentHandler getChildHandler(java.lang.String pQName, java.lang.String pNamespaceURI, java.lang.String pLocalName)
           
 java.lang.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
 
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.XsTOpenAttrs
getOpenAttributes
 
Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsObject
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, validate
 

Constructor Detail

XsEAnnotationImpl

protected XsEAnnotationImpl(XsObject pParent)
Method Detail

setId

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

getId

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

addChild

protected void addChild(java.lang.Object pChild)

createAppinfo

public XsEAppinfo createAppinfo()
Description copied from interface: XsEAnnotation

Creates a new 'appinfo' child element.

Specified by:
createAppinfo in interface XsEAnnotation

createDocumentation

public XsEDocumentation createDocumentation()
Description copied from interface: XsEAnnotation

Creates a new 'documentation' child element.

Specified by:
createDocumentation in interface XsEAnnotation

getAppinfos

public XsEAppinfo[] getAppinfos()
Description copied from interface: XsEAnnotation

Returns all the 'appinfo' child elements in the order of creation by XsEAnnotation.createAppinfo().

Specified by:
getAppinfos in interface XsEAnnotation

getDocumentations

public XsEDocumentation[] getDocumentations()
Description copied from interface: XsEAnnotation

Returns all the 'documentation' child elements in the order of creation by XsEAnnotation.createDocumentation().

Specified by:
getDocumentations in interface XsEAnnotation

getChilds

public java.lang.Object[] getChilds()
Description copied from interface: XsEAnnotation

Returns all the annotations child elements in the order of creation.

Specified by:
getChilds in interface XsEAnnotation

getChildHandler

public org.xml.sax.ContentHandler getChildHandler(java.lang.String pQName,
                                                  java.lang.String pNamespaceURI,
                                                  java.lang.String pLocalName)
                                           throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException