org.jbind.xml.schema.cmp
Class ChoiceDecl
java.lang.Object
org.jbind.xml.schema.cmp.Component
org.jbind.xml.schema.cmp.Content
org.jbind.xml.schema.cmp.ElemGroupDesc
org.jbind.xml.schema.cmp.ElemGroupDecl
org.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
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.cmp.IComponent |
addSubComponent, getBindings, getGlobalRef, getName, getNamespace, getParentComponent, getSymbolspace, isAnonymous, isReference, isTopLevelComponent, setBindings, setParentComponent, validate |
ChoiceDecl
public ChoiceDecl(ISourceInfo aSourceInfo,
java.lang.String aNamespace,
java.lang.String aName,
IRange aRange)
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