org.jbind.xml.schema.element
Class ComplexTypeDef

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
                          extended byorg.jbind.xml.schema.element.ComplexTypeDef
All Implemented Interfaces:
IAnnotated, IComplexTypeDef, IComponentJobHelper, IElement, IHasBindingAttributes, IHasLocation, IJobHelper, INamed, INode, IOpenAttributes, IParent, IRedefinable, ISchemaDataAdder, ISourceInfo, ITopLevelElement, ITopLevelJobHelper, ITypeDef, IXmlElement, IXmlNode

public class ComplexTypeDef
extends TypeDef
implements IComplexTypeDef


Constructor Summary
ComplexTypeDef(CreationParams aCreationParams, java.lang.String aRole)
           
 
Method Summary
 void addSchemaData(IComponentStore aComponentStore, IComponent aComponent, IConstraintViolations aViolations)
          Adds data from the schema to the specified component.
 void collectRefsForCompletion(IElementHelper anElementHelper, IJobRefs aJobRefs)
           
 void collectRefsForCreation(IJobRefs aJobRefs)
           
 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.
protected  IElement doCreateChild(CreationParams aCreationParams)
          Hook method to create a child element.
 IAttributeInfos getAttributeInfos()
           
 java.util.Set getBlockTypes()
           
 boolean getIsAbstract()
           
 IRef getRedefinedRef()
          Gets the reference of the element that was redefined.
 java.lang.Boolean isMixed()
           
 void redefine(ITopLevelElement aRedefinedElement, IConstraintViolations aViolations)
           
 void setIsMixed(java.lang.Boolean aBoolean)
           
 void setRedefinedRef(IRef aRef)
          Sets the reference of the element that was redefined by this element.
 void validateElement(IElemValHelper aHelper, IConstraintViolations aViolations)
           
 
Methods inherited from class org.jbind.xml.schema.element.TypeDef
getFinalTypes, getRole, getSymbolSpace
 
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.ITypeDef
getFinalTypes
 
Methods inherited from interface org.jbind.xml.schema.element.INamed
getGlobalRef, getName, getSymbolSpace
 
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.schema.instantiation.ITopLevelElement
getGlobalRef, setName
 

Constructor Detail

ComplexTypeDef

public ComplexTypeDef(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 TypeDef
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 Annotated
Throws:
XmlException

getBlockTypes

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

getIsAbstract

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

isMixed

public java.lang.Boolean isMixed()
Specified by:
isMixed in interface IComplexTypeDef

setIsMixed

public void setIsMixed(java.lang.Boolean aBoolean)

getAttributeInfos

public IAttributeInfos getAttributeInfos()
Specified by:
getAttributeInfos in interface IComplexTypeDef

validateElement

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

collectRefsForCreation

public void collectRefsForCreation(IJobRefs aJobRefs)
Specified by:
collectRefsForCreation in interface IComponentJobHelper

collectRefsForCompletion

public void collectRefsForCompletion(IElementHelper anElementHelper,
                                     IJobRefs aJobRefs)
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

addSchemaData

public void addSchemaData(IComponentStore aComponentStore,
                          IComponent aComponent,
                          IConstraintViolations aViolations)
Description copied from interface: ISchemaDataAdder
Adds data from the schema to the specified component. Schema data are default and fixed values as well as facets.

Specified by:
addSchemaData in interface ISchemaDataAdder

redefine

public void redefine(ITopLevelElement aRedefinedElement,
                     IConstraintViolations aViolations)
Specified by:
redefine in interface IRedefinable

getRedefinedRef

public IRef getRedefinedRef()
Description copied from interface: IRedefinable
Gets the reference of the element that was redefined.

Specified by:
getRedefinedRef in interface IRedefinable
Returns:
(optional). If null is returned then the redefinable was not used to redefine an element.

setRedefinedRef

public void setRedefinedRef(IRef aRef)
Description copied from interface: IRedefinable
Sets the reference of the element that was redefined by this element.

Specified by:
setRedefinedRef in interface IRedefinable
Parameters:
aRef - (required).