org.jbind.xml.schema.element
Class ElementDeclaration

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
                  extended byorg.jbind.xml.schema.element.Named
                      extended byorg.jbind.xml.schema.element.Declaration
                          extended byorg.jbind.xml.schema.element.PartDeclaration
                              extended byorg.jbind.xml.schema.element.ElementDeclaration
All Implemented Interfaces:
IAnnotated, IComponentJobHelper, IDeclaration, IElement, IElementDeclaration, IHasBindingAttributes, IHasLocation, IJobHelper, INamed, INode, IOpenAttributes, IParent, IPartDeclaration, IParticle, ISchemaDataAdder, ISourceInfo, ITopLevelElement, ITopLevelJobHelper, IXmlElement, IXmlNode

public class ElementDeclaration
extends PartDeclaration
implements IElementDeclaration


Constructor Summary
ElementDeclaration(CreationParams aCreationParams, boolean anIsLocal)
           
 
Method Summary
 void collectRefsForCompletion(IElementHelper anElementHelper, IJobRefs aJobRefs)
          Recursively collects the references that must be resolved to complete the particle.
 void collectRefsForCreation(IJobRefs aJobRefs)
          Recursively collects all references.
 void collectRefsForValidation(IElementHelper anElementHelper, IJobRefs aJobRefs)
           
 void completeComponent(IElementHelper anElementHelper, IComponent aComponent, IConstraintViolations aViolations)
           
 IComponent createComponent(IElementHelper anElementHelper, IConstraintViolations aViolations)
           
protected  IAttribute doCreateAttribute(ACParams anACParams)
          Hook method to create an attribute.
 IElement doCreateChild(CreationParams aCreationParams)
          Hook method to create a child element.
 java.util.Set getBlockTypes()
           
 java.util.Set getFinalTypes()
           
 boolean getIsAbstract()
           
 boolean getIsNillable()
           
 int getMaxOccurs()
           
 int getMinOccurs()
           
 IRef getSubstitutionGroup()
           
 ISymbolspace getSymbolSpace()
           
 ITypeDef getTypeDef()
           
 boolean isUnbounded()
           
 java.util.Iterator iterIdentityConstraintElements()
           
 void validateElement(IElemValHelper aHelper, IConstraintViolations aViolations)
           
 
Methods inherited from class org.jbind.xml.schema.element.PartDeclaration
addSchemaData, getBoundName, getDefault, getFixed, getFormType, getIsLocal, getRef, getType
 
Methods inherited from class org.jbind.xml.schema.element.Named
createAndAddJob, getGlobalRef, getName, setName, toString
 
Methods inherited from class org.jbind.xml.schema.element.Annotated
getAnnotation, getAnnotationElement, getId, iterAppInfos
 
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_
 
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.IPartDeclaration
getDefault, getFixed, getFormType, getRef, getType
 
Methods inherited from interface org.jbind.xml.schema.element.INamed
getGlobalRef, getName
 
Methods inherited from interface org.jbind.xml.schema.element.IAnnotated
getAnnotationElement, getId
 
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
getAnnotation, getPrefixToNamespaceMapping
 
Methods inherited from interface org.jbind.xml.core.cmp.IXmlElement
getAttributes, iterXmlNodes
 
Methods inherited from interface org.jbind.xml.schema.instantiation.IComponentJobHelper
isTopLevelComponent
 
Methods inherited from interface org.jbind.xml.schema.instantiation.ITopLevelJobHelper
createAndAddJob
 
Methods inherited from interface org.jbind.xml.core.cmp.ISchemaDataAdder
addSchemaData
 
Methods inherited from interface org.jbind.xml.schema.instantiation.ITopLevelElement
getGlobalRef, setName
 

Constructor Detail

ElementDeclaration

public ElementDeclaration(CreationParams aCreationParams,
                          boolean anIsLocal)
Method Detail

doCreateChild

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

Overrides:
doCreateChild in class Annotated
Throws:
XmlException

doCreateAttribute

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

Overrides:
doCreateAttribute in class PartDeclaration
Throws:
XmlException

getMinOccurs

public int getMinOccurs()
Specified by:
getMinOccurs in interface IParticle

getMaxOccurs

public int getMaxOccurs()
Specified by:
getMaxOccurs in interface IParticle

isUnbounded

public boolean isUnbounded()
Specified by:
isUnbounded in interface IParticle

getIsAbstract

public boolean getIsAbstract()
Specified by:
getIsAbstract in interface IElementDeclaration

getFinalTypes

public java.util.Set getFinalTypes()
Specified by:
getFinalTypes in interface IElementDeclaration

getBlockTypes

public java.util.Set getBlockTypes()
Specified by:
getBlockTypes in interface IElementDeclaration

getSubstitutionGroup

public IRef getSubstitutionGroup()
Specified by:
getSubstitutionGroup in interface IElementDeclaration

getIsNillable

public boolean getIsNillable()
Specified by:
getIsNillable in interface IElementDeclaration

iterIdentityConstraintElements

public java.util.Iterator iterIdentityConstraintElements()
Specified by:
iterIdentityConstraintElements in interface IElementDeclaration

getSymbolSpace

public ISymbolspace getSymbolSpace()
Specified by:
getSymbolSpace in interface INamed

getTypeDef

public ITypeDef getTypeDef()

validateElement

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

collectRefsForCreation

public void collectRefsForCreation(IJobRefs aJobRefs)
Description copied from interface: IParticle
Recursively collects all references.

Specified by:
collectRefsForCreation in interface IComponentJobHelper

collectRefsForCompletion

public void collectRefsForCompletion(IElementHelper anElementHelper,
                                     IJobRefs aJobRefs)
Description copied from interface: IParticle
Recursively collects the references that must be resolved to complete the particle.

Specified by:
collectRefsForCompletion in interface IComponentJobHelper

collectRefsForValidation

public void collectRefsForValidation(IElementHelper anElementHelper,
                                     IJobRefs aJobRefs)
Specified by:
collectRefsForValidation in interface IComponentJobHelper

createComponent

public IComponent createComponent(IElementHelper anElementHelper,
                                  IConstraintViolations aViolations)
Specified by:
createComponent in interface IComponentJobHelper

completeComponent

public void completeComponent(IElementHelper anElementHelper,
                              IComponent aComponent,
                              IConstraintViolations aViolations)
Specified by:
completeComponent in interface IComponentJobHelper
Overrides:
completeComponent in class PartDeclaration