org.jbind.xml.instance.use
Class GroupUseStateProxy

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

public class GroupUseStateProxy
extends java.lang.Object
implements IGroupUseState


Constructor Summary
GroupUseStateProxy(IElemGroupDesc aGroup, IUseState aParent)
           
 
Method Summary
 IContentDesc getContentDesc()
          Gets the content of the use node.
 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.
 IUseState getParent()
          Gets the parent.
 int getUseCounter()
          Gets the use counter.
 void isValidEnd(IHasLocation aHasLocation)
           
 void reset()
          Resets the the use state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupUseStateProxy

public GroupUseStateProxy(IElemGroupDesc aGroup,
                          IUseState aParent)
Method Detail

getContentDesc

public IContentDesc getContentDesc()
Description copied from interface: IUseState
Gets the content of the use node.

Specified by:
getContentDesc in interface IUseState
Returns:
(required).

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.

Specified by:
getNextUseState in interface IUseState
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.

getParent

public IUseState getParent()
Description copied from interface: IUseState
Gets the parent.

Specified by:
getParent in interface IUseState
Returns:
(optional).

getUseCounter

public int getUseCounter()
Description copied from interface: IUseState
Gets the use counter. The use counter counts the number of method invokations of the getNextUseState method that returned a non-null result. In other words it counts the number of times an element was processed with this use state.

Specified by:
getUseCounter in interface IUseState
Returns:
The number of times the use state returned a non-null next use state.

isValidEnd

public void isValidEnd(IHasLocation aHasLocation)
                throws XmlException
Specified by:
isValidEnd in interface IUseState
Throws:
XmlException

reset

public void reset()
Description copied from interface: IUseState
Resets the the use state. The use counter is set to 0 and any additional internal usage state is also reset.

Specified by:
reset in interface IUseState