Package com.ctc.wstx.dtd
Class TokenContentSpec
java.lang.Object
com.ctc.wstx.dtd.ContentSpec
com.ctc.wstx.dtd.TokenContentSpec
Content specification that defines content model consisting of just
one allowed element. In addition to the allowed element, spec can have
optional arity ("*", "+", "?") marker.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final PrefixedName
(package private) static final TokenContentSpec
Fields inherited from class com.ctc.wstx.dtd.ContentSpec
mArity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TokenContentSpec
construct
(char arity, PrefixedName elemName) static TokenContentSpec
getName()
Method called by input element stack to get validator for this content specification, if this specification is simple enough not to need full DFA-based validator.boolean
isLeaf()
rewrite()
Method called as the first part of DFA construction, if necessary; will usually create simplerModelNode
instances that will match definition this instance contains.toString()
Methods inherited from class com.ctc.wstx.dtd.ContentSpec
getArity, setArity
-
Field Details
-
sDummy
-
mElemName
-
-
Constructor Details
-
TokenContentSpec
-
-
Method Details
-
construct
-
getDummySpec
-
isLeaf
public boolean isLeaf()- Overrides:
isLeaf
in classContentSpec
-
getName
-
getSimpleValidator
Description copied from class:ContentSpec
Method called by input element stack to get validator for this content specification, if this specification is simple enough not to need full DFA-based validator.- Specified by:
getSimpleValidator
in classContentSpec
- Returns:
- Simple content model validator, if one can be directly constructed, or null to indicate that a DFA needs to be created.
-
rewrite
Description copied from class:ContentSpec
Method called as the first part of DFA construction, if necessary; will usually create simplerModelNode
instances that will match definition this instance contains.- Specified by:
rewrite
in classContentSpec
-
toString
-