org.jbind.xml.schema.element
Class UnionVariety

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.Variety
                      extended byorg.jbind.xml.schema.element.UnionVariety
All Implemented Interfaces:
IAnnotated, IElement, IHasBindingAttributes, IHasLocation, INode, IOpenAttributes, IParent, ISourceInfo, IUnionVariety, IVariety, IXmlElement, IXmlNode

public class UnionVariety
extends Variety
implements IUnionVariety


Constructor Summary
UnionVariety(CreationParams aCreationParams)
           
 
Method Summary
 void addSchemaData(IComponentStore aComponentStore, IComponent aComponent, IConstraintViolations aViolations)
           
 void collectConstraints(IAnyType aType, IConstraintViolations aViolations)
           
 void collectRefsForCreation(IJobRefs aJobRefs)
           
 IComponent createComponent(IElementHelper anElementHelper, ISourceInfo aSourceInfo, java.lang.String aNamespace, java.lang.String aName, java.lang.String aRole, java.util.Set aFinalTypes, 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.
 IRef getBaseRef()
           
 java.util.Iterator iterMemberTypes()
           
 java.util.Iterator iterSimpleTypeDefs()
           
 
Methods inherited from class org.jbind.xml.schema.element.Annotated
getAnnotation, getAnnotationElement, getId, iterAppInfos, validateElement
 
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.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, validateElement
 
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
 

Constructor Detail

UnionVariety

public UnionVariety(CreationParams aCreationParams)
Method Detail

iterMemberTypes

public java.util.Iterator iterMemberTypes()
Specified by:
iterMemberTypes in interface IUnionVariety

iterSimpleTypeDefs

public java.util.Iterator iterSimpleTypeDefs()
Specified by:
iterSimpleTypeDefs in interface IUnionVariety

doCreateAttribute

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

Overrides:
doCreateAttribute in class Annotated
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

collectRefsForCreation

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

createComponent

public IComponent createComponent(IElementHelper anElementHelper,
                                  ISourceInfo aSourceInfo,
                                  java.lang.String aNamespace,
                                  java.lang.String aName,
                                  java.lang.String aRole,
                                  java.util.Set aFinalTypes,
                                  IConstraintViolations aViolations)
Specified by:
createComponent in interface IVariety

addSchemaData

public void addSchemaData(IComponentStore aComponentStore,
                          IComponent aComponent,
                          IConstraintViolations aViolations)
Specified by:
addSchemaData in interface IVariety

getBaseRef

public IRef getBaseRef()
Specified by:
getBaseRef in interface IVariety

collectConstraints

public void collectConstraints(IAnyType aType,
                               IConstraintViolations aViolations)
Specified by:
collectConstraints in interface IVariety