org.jbind.xml.instance.use
Class ChoiceUseState

java.lang.Object
  extended byorg.jbind.xml.instance.use.ContentUseState
      extended byorg.jbind.xml.instance.use.GroupUseState
          extended byorg.jbind.xml.instance.use.ChoiceUseState
All Implemented Interfaces:
IGroupUseState, IUseState

public class ChoiceUseState
extends GroupUseState


Constructor Summary
ChoiceUseState(IChoiceDesc aContent, IUseState aParent)
           
 
Method Summary
protected  void doIsValidEnd(IHasLocation aHasLocation)
           
 IElemUseState getNextUseState(java.lang.String aNamespace, java.lang.String aName, IAnyType anOverloadingType, IHasLocation aHasLocation)
          Gets the next use state that has a content use for the specified element.
 
Methods inherited from class org.jbind.xml.instance.use.GroupUseState
doReset, iterUseStates
 
Methods inherited from class org.jbind.xml.instance.use.ContentUseState
getContentDesc, getParent, getUseCounter, incrementUseCounter, isValidEnd, mayIncrementUseCounter, reset
 
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.IUseState
getContentDesc, getParent, getUseCounter, isValidEnd, reset
 

Constructor Detail

ChoiceUseState

public ChoiceUseState(IChoiceDesc aContent,
                      IUseState aParent)
Method Detail

getNextUseState

public IElemUseState getNextUseState(java.lang.String aNamespace,
                                     java.lang.String aName,
                                     IAnyType anOverloadingType,
                                     IHasLocation aHasLocation)
                              throws XmlException
Description copied from interface: IUseState
Gets the next use state that has a content use for the specified element.

Parameters:
aNamespace - (required).
aName - (required).
Returns:
(optional).
Throws:
XmlException - Raised if this use state needs to return the next use state (e.g. because it is a sequence that has been started) but the specified element does not match.

doIsValidEnd

protected void doIsValidEnd(IHasLocation aHasLocation)
                     throws XmlException
Specified by:
doIsValidEnd in class ContentUseState
Throws:
XmlException