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

public Class OptionalModel

extends ModelNode
Class Inheritance
Imports
java.util.*

Content specification class that represents an optional specification. Optional specifications are generally a result of '?' arity marker, and are created when ContentSpec#rewrite is called on a specification with '?' arity modifier.

Field Summary

Modifier and TypeField and Description
pack-priv ModelNode

Constructor Summary

AccessConstructor and Description
public

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

mModelback to summary
pack-priv ModelNode mModel

Constructor Detail

OptionalModelback to summary
public OptionalModel(ModelNode model)

Method Detail

addFirstPosback to summary
public void addFirstPos(BitSet pos)

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

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

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