com.ctc.wstx.dtd
Class ChoiceModel

java.lang.Object
  extended by com.ctc.wstx.dtd.ModelNode
      extended by com.ctc.wstx.dtd.ChoiceModel

public class ChoiceModel
extends ModelNode

Model class that encapsulates set of sub-models, of which one (and only one) needs to be matched.


Constructor Summary
protected ChoiceModel(ModelNode[] subModels)
           
 
Method Summary
 void addFirstPos(java.util.BitSet firstPos)
           
 void addLastPos(java.util.BitSet lastPos)
           
 void calcFollowPos(java.util.BitSet[] followPosSets)
           
 ModelNode cloneModel()
          Method that has to create a deep copy of the model, without sharing any of existing Objects.
 void indexTokens(java.util.List tokens)
           
 boolean isNullable()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChoiceModel

protected ChoiceModel(ModelNode[] subModels)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

cloneModel

public ModelNode cloneModel()
Method that has to create a deep copy of the model, without sharing any of existing Objects.

Specified by:
cloneModel in class ModelNode

isNullable

public boolean isNullable()
Specified by:
isNullable in class ModelNode

indexTokens

public void indexTokens(java.util.List tokens)
Specified by:
indexTokens in class ModelNode

addFirstPos

public void addFirstPos(java.util.BitSet firstPos)
Specified by:
addFirstPos in class ModelNode

addLastPos

public void addLastPos(java.util.BitSet lastPos)
Specified by:
addLastPos in class ModelNode

calcFollowPos

public void calcFollowPos(java.util.BitSet[] followPosSets)
Specified by:
calcFollowPos in class ModelNode