org.jbind.xml.schema.element
Class TypeDef

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.TypeDef
All Implemented Interfaces:
IAnnotated, IComponentJobHelper, IElement, IHasBindingAttributes, IHasLocation, IJobHelper, INamed, INode, IOpenAttributes, IParent, IRedefinable, ISchemaDataAdder, ISourceInfo, ITopLevelElement, ITopLevelJobHelper, ITypeDef, IXmlElement, IXmlNode
Direct Known Subclasses:
ComplexTypeDef, SimpleTypeDef

public abstract class TypeDef
extends Named
implements ITypeDef


Constructor Summary
TypeDef(CreationParams aCreationParams, java.lang.String aRole)
           
 
Method Summary
protected  IAttribute doCreateAttribute(ACParams anACParams)
          Hook method to create an attribute.
 java.util.Set getFinalTypes()
          Gets the final types specified at the type.
protected  java.lang.String getRole()
           
 ISymbolspace getSymbolSpace()
           
 void validateElement(IElemValHelper aHelper, IConstraintViolations aViolations)
           
 
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
doCreateChild, 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.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
collectRefsForCompletion, collectRefsForCreation, collectRefsForValidation, completeComponent, createComponent, 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.element.IRedefinable
getRedefinedRef, redefine, setRedefinedRef
 
Methods inherited from interface org.jbind.xml.schema.instantiation.ITopLevelElement
getGlobalRef, setName
 

Constructor Detail

TypeDef

public TypeDef(CreationParams aCreationParams,
               java.lang.String aRole)
Method Detail

doCreateAttribute

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

Overrides:
doCreateAttribute in class Named
Throws:
XmlException

getFinalTypes

public java.util.Set getFinalTypes()
Description copied from interface: ITypeDef
Gets the final types specified at the type.

Specified by:
getFinalTypes in interface ITypeDef
Returns:
(optional). A set of FinalTypes.

getSymbolSpace

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

getRole

protected java.lang.String getRole()

validateElement

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