org.jbind.xml.schema.cmp
Class ChoiceDecl

java.lang.Object
  extended byorg.jbind.xml.schema.cmp.Component
      extended byorg.jbind.xml.schema.cmp.Content
          extended byorg.jbind.xml.schema.cmp.ElemGroupDesc
              extended byorg.jbind.xml.schema.cmp.ElemGroupDecl
                  extended byorg.jbind.xml.schema.cmp.ChoiceDecl
All Implemented Interfaces:
IChoiceDecl, IChoiceDesc, IComponent, IContentDesc, IElemGroupDecl, IElemGroupDesc, IHasBindingAttributes, IHasLocation, IHasRange, ISourceInfo

public class ChoiceDecl
extends ElemGroupDecl
implements IChoiceDecl


Constructor Summary
ChoiceDecl(ISourceInfo aSourceInfo, java.lang.String aNamespace, java.lang.String aName, IRange aRange)
           
 
Method Summary
 void accept(IComponentVisitor aVisitor)
          Accepts a visitor.
 IElemGroupDesc createGroup()
          Creates a group that has the same range and compositor like this group but contains no content.
 IElemGroupDesc createGroup(IRange aRange)
          Creates a group that has the same compositor like this group and the specified range.
 IElemGroupDesc createReference(ISourceInfo aSourceInfo, IRange aRange)
           
 IUseState createUseState(IUseState aParent)
           
 Compositor getCompositor()
          Gets the compositor.
 java.lang.String getDesc()
          Gets a description that is output if the content was not matched when an instance is read in.
 IRange getInnerRange(IRef aRef)
           
 boolean isPointless(IElemGroupDesc aParent)
           
 
Methods inherited from class org.jbind.xml.schema.cmp.ElemGroupDecl
add, collectElemDescs, getNbParticles, isReference, iterContent, setSubContent, validate
 
Methods inherited from class org.jbind.xml.schema.cmp.ElemGroupDesc
addToParent, createUseStateProxy, getRange, getSymbolspace, isPointlessAll, isPointlessChoice, isPointlessSequence, removePointlessGroups, replaceSubstitutions, replaceSubstitutionsByChoice
 
Methods inherited from class org.jbind.xml.schema.cmp.Content
getMaxOccurs, getMinOccurs, getRange, isEmptiable, isUnbounded
 
Methods inherited from class org.jbind.xml.schema.cmp.Component
addSubComponent, getAnnotation, getBindingAttribute, getBindings, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getGlobalRef, getLocalBindingAttribute, getLocalStringBindingAttribute, getLocation, getName, getNamespace, getParentComponent, getPrefixToNamespaceMapping, getStringBindingAttribute, isAnonymous, isTopLevelComponent, setBindings, setParentComponent, visitSubComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.core.content.IElemGroupDesc
add, getNbParticles, iterContent, removePointlessGroups, replaceSubstitutionsByChoice
 
Methods inherited from interface org.jbind.xml.core.content.IContentDesc
addToParent, collectElemDescs, createUseStateProxy, getMaxOccurs, getMinOccurs, getRange, isEmptiable, isUnbounded, replaceSubstitutions
 
Methods inherited from interface org.jbind.xml.core.cmp.IComponent
addSubComponent, getBindings, getGlobalRef, getName, getNamespace, getParentComponent, getSymbolspace, isAnonymous, isReference, isTopLevelComponent, setBindings, setParentComponent, validate
 
Methods inherited from interface org.jbind.xml.core.cmp.ISourceInfo
getAnnotation, getPrefixToNamespaceMapping
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 
Methods inherited from interface org.jbind.xml.base.IHasBindingAttributes
getBindingAttribute, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getLocalBindingAttribute, getLocalStringBindingAttribute, getStringBindingAttribute
 
Methods inherited from interface org.jbind.xml.base.IHasRange
getRange
 
Methods inherited from interface org.jbind.xml.core.content.IElemGroupDecl
setSubContent
 

Constructor Detail

ChoiceDecl

public ChoiceDecl(ISourceInfo aSourceInfo,
                  java.lang.String aNamespace,
                  java.lang.String aName,
                  IRange aRange)
Method Detail

createUseState

public IUseState createUseState(IUseState aParent)
Specified by:
createUseState in interface IContentDesc

getDesc

public java.lang.String getDesc()
Description copied from interface: IContentDesc
Gets a description that is output if the content was not matched when an instance is read in.

Specified by:
getDesc in interface IContentDesc
Returns:
(required).

getInnerRange

public IRange getInnerRange(IRef aRef)
Specified by:
getInnerRange in interface IElemGroupDesc

accept

public void accept(IComponentVisitor aVisitor)
            throws XmlException
Description copied from interface: IComponent
Accepts a visitor. The implementation calls the corresponding visitXXXStart and vistXXXEnd methods of the visitor (e.g. visitComplexTypeStart and visitComplexTypeEnd).

Specified by:
accept in interface IComponent
Parameters:
aVisitor - (required).
Throws:
XmlException

createReference

public IElemGroupDesc createReference(ISourceInfo aSourceInfo,
                                      IRange aRange)
Specified by:
createReference in interface IElemGroupDesc

createGroup

public IElemGroupDesc createGroup()
Description copied from interface: IElemGroupDesc
Creates a group that has the same range and compositor like this group but contains no content.

Specified by:
createGroup in interface IElemGroupDesc
Returns:
(required).

createGroup

public IElemGroupDesc createGroup(IRange aRange)
Description copied from interface: IElemGroupDesc
Creates a group that has the same compositor like this group and the specified range.

Specified by:
createGroup in interface IElemGroupDesc
Parameters:
aRange - (required).
Returns:
(required).

getCompositor

public Compositor getCompositor()
Description copied from interface: IElemGroupDesc
Gets the compositor.

Specified by:
getCompositor in interface IElemGroupDesc
Returns:
(required).

isPointless

public boolean isPointless(IElemGroupDesc aParent)
Specified by:
isPointless in interface IElemGroupDesc