Package com.ctc.wstx.dtd
Class OptionalModel
java.lang.Object
com.ctc.wstx.dtd.ModelNode
com.ctc.wstx.dtd.OptionalModel
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFirstPos(BitSet pos) voidaddLastPos(BitSet pos) voidcalcFollowPos(BitSet[] followPosSets) Method that has to create a deep copy of the model, without sharing any of existing Objects.voidindexTokens(List<TokenModel> tokens) booleantoString()
-
Field Details
-
mModel
ModelNode mModel
-
-
Constructor Details
-
OptionalModel
-
-
Method Details
-
cloneModel
Method that has to create a deep copy of the model, without sharing any of existing Objects.- Specified by:
cloneModelin classModelNode
-
isNullable
public boolean isNullable()- Specified by:
isNullablein classModelNode
-
indexTokens
- Specified by:
indexTokensin classModelNode
-
addFirstPos
- Specified by:
addFirstPosin classModelNode
-
addLastPos
- Specified by:
addLastPosin classModelNode
-
calcFollowPos
- Specified by:
calcFollowPosin classModelNode
-
toString
-