org.jbind.xml.schema.element
Class Annotated

java.lang.Object
  extended byorg.jbind.xml.schema.element.Parent
      extended byorg.jbind.xml.schema.element.Element
          extended byorg.jbind.xml.schema.element.OpenAttributes
              extended byorg.jbind.xml.schema.element.Annotated
All Implemented Interfaces:
IAnnotated, IElement, IHasBindingAttributes, IHasLocation, INode, IOpenAttributes, IParent, ISourceInfo, IXmlElement, IXmlNode
Direct Known Subclasses:
AbbreviatedContentModel, AdditionalSource, Any, AttributeGroupRef, ContentModelDesc, Derivation, Facet, Named, Particle, SimpleRestriction, Variety, XPathComponent, XPathMethodElement

public abstract class Annotated
extends OpenAttributes
implements IAnnotated


Constructor Summary
Annotated(CreationParams aCreationParams)
           
 
Method Summary
protected  IAttribute doCreateAttribute(ACParams anACParams)
          Hook method to create an attribute.
protected  IElement doCreateChild(CreationParams aCreationParams)
          Hook method to create a child element.
 IAnnotation getAnnotation()
           
 IAnnotationElement getAnnotationElement()
           
 java.lang.String getId()
           
protected  java.util.Iterator iterAppInfos()
           
 void validateElement(IElemValHelper aHelper, IConstraintViolations aViolations)
           
 
Methods inherited from class org.jbind.xml.schema.element.OpenAttributes
getAttributeString
 
Methods inherited from class org.jbind.xml.schema.element.Element
acceptAppInfoVisitor, addAttribute, createChild, createGlobalRef, getAttributes, getBindingAttribute, getBoolean, getChildByClass, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getLocalBindingAttribute, getLocalName, getLocalStringBindingAttribute, getLocation, getNamespace, getNamespaceUri, getParent_, getParentHelper, getPrefix, getPrefixToNamespaceMapping, getQName, getSchema, getSchemaDocument, getSchemaElement, getStringBindingAttribute, getSubElement, getTargetNamespace, isTopLevelComponent, iterChildrenByClass, setLocation, setParent_, toString
 
Methods inherited from class org.jbind.xml.schema.element.Parent
addChild, hasChildren, iterChildren, iterXmlNodes, visitChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.schema.element.IOpenAttributes
getAttributeString
 
Methods inherited from interface org.jbind.xml.schema.element.IElement
addAttribute, createChild, getQName, getSchema, getSchemaDocument, getSubElement, isTopLevelComponent, iterChildrenByClass
 
Methods inherited from interface org.jbind.xml.schema.element.IParent
addChild, hasChildren, iterChildren
 
Methods inherited from interface org.jbind.xml.schema.element.INode
getParent_, setLocation, setParent_
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 
Methods inherited from interface org.jbind.xml.core.cmp.IXmlNode
acceptAppInfoVisitor
 
Methods inherited from interface org.jbind.xml.base.IHasBindingAttributes
getBindingAttribute, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getLocalBindingAttribute, getLocalStringBindingAttribute, getStringBindingAttribute
 
Methods inherited from interface org.jbind.xml.core.cmp.ISourceInfo
getPrefixToNamespaceMapping
 
Methods inherited from interface org.jbind.xml.core.cmp.IXmlElement
getAttributes, iterXmlNodes
 

Constructor Detail

Annotated

public Annotated(CreationParams aCreationParams)
Method Detail

getAnnotationElement

public IAnnotationElement getAnnotationElement()
Specified by:
getAnnotationElement in interface IAnnotated

getId

public java.lang.String getId()
Specified by:
getId in interface IAnnotated

doCreateAttribute

protected IAttribute doCreateAttribute(ACParams anACParams)
                                throws XmlException
Description copied from class: Element
Hook method to create an attribute.

Overrides:
doCreateAttribute in class OpenAttributes
Throws:
XmlException

doCreateChild

protected IElement doCreateChild(CreationParams aCreationParams)
                          throws XmlException
Description copied from class: Element
Hook method to create a child element.

Overrides:
doCreateChild in class Element
Parameters:
aCreationParams - (required).
Returns:
(optional). The created element.
Throws:
XmlException - Raised if the creation was not successful.

validateElement

public void validateElement(IElemValHelper aHelper,
                            IConstraintViolations aViolations)
Specified by:
validateElement in interface IElement
Overrides:
validateElement in class Element

iterAppInfos

protected java.util.Iterator iterAppInfos()

getAnnotation

public IAnnotation getAnnotation()
Specified by:
getAnnotation in interface ISourceInfo
Overrides:
getAnnotation in class Element