Top Description Fields Constructors Methods
com.ctc.wstx.dtd

public Class ChoiceModel

extends ModelNode
Class Inheritance
Imports
java.util.*

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

Field Summary

Modifier and TypeField and Description
pack-priv BitSet
pack-priv BitSet
pack-priv boolean
pack-priv final ModelNode[]

Constructor Summary

AccessConstructor and Description
protected
ChoiceModel(ModelNode[] subModels)

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
calcFollowPos(BitSet[] followPosSets)

Implements abstract com.ctc.wstx.dtd.ModelNode.calcFollowPos.

public ModelNode
cloneModel()

Implements abstract com.ctc.wstx.dtd.ModelNode.cloneModel.

Method that has to create a deep copy of the model, without sharing any of existing Objects.

public void
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Field Detail

mFirstPosback to summary
pack-priv BitSet mFirstPos
mLastPosback to summary
pack-priv BitSet mLastPos
mNullableback to summary
pack-priv boolean mNullable
mSubModelsback to summary
pack-priv final ModelNode[] mSubModels

Constructor Detail

ChoiceModelback to summary
protected ChoiceModel(ModelNode[] subModels)

Method Detail

addFirstPosback to summary
public void addFirstPos(BitSet firstPos)

Implements abstract com.ctc.wstx.dtd.ModelNode.addFirstPos.

Annotations
@Override
addLastPosback to summary
public void addLastPos(BitSet lastPos)

Implements abstract com.ctc.wstx.dtd.ModelNode.addLastPos.

Annotations
@Override
calcFollowPosback to summary
public void calcFollowPos(BitSet[] followPosSets)

Implements abstract com.ctc.wstx.dtd.ModelNode.calcFollowPos.

Annotations
@Override
cloneModelback to summary
public ModelNode cloneModel()

Implements abstract com.ctc.wstx.dtd.ModelNode.cloneModel.

Method that has to create a deep copy of the model, without sharing any of existing Objects.

Annotations
@Override
indexTokensback to summary
public void indexTokens(List<TokenModel> tokens)

Implements abstract com.ctc.wstx.dtd.ModelNode.indexTokens.

Annotations
@Override
isNullableback to summary
public boolean isNullable()

Implements abstract com.ctc.wstx.dtd.ModelNode.isNullable.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override