Package com.ctc.wstx.dtd
Class TokenContentSpec
- java.lang.Object
-
- com.ctc.wstx.dtd.ContentSpec
-
- com.ctc.wstx.dtd.TokenContentSpec
-
public class TokenContentSpec extends ContentSpec
Content specification that defines content model consisting of just one allowed element. In addition to the allowed element, spec can have optional arity ("*", "+", "?") marker.
-
-
Field Summary
-
Fields inherited from class com.ctc.wstx.dtd.ContentSpec
mArity
-
-
Constructor Summary
Constructors Constructor Description TokenContentSpec(char arity, PrefixedName elemName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TokenContentSpecconstruct(char arity, PrefixedName elemName)static TokenContentSpecgetDummySpec()PrefixedNamegetName()StructValidatorgetSimpleValidator()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.booleanisLeaf()ModelNoderewrite()Method called as the first part of DFA construction, if necessary; will usually create simplerModelNodeinstances that will match definition this instance contains.StringtoString()-
Methods inherited from class com.ctc.wstx.dtd.ContentSpec
getArity, setArity
-
-
-
-
Constructor Detail
-
TokenContentSpec
public TokenContentSpec(char arity, PrefixedName elemName)
-
-
Method Detail
-
construct
public static TokenContentSpec construct(char arity, PrefixedName elemName)
-
getDummySpec
public static TokenContentSpec getDummySpec()
-
isLeaf
public boolean isLeaf()
- Overrides:
isLeafin classContentSpec
-
getName
public PrefixedName getName()
-
getSimpleValidator
public StructValidator getSimpleValidator()
Description copied from class:ContentSpecMethod 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:
getSimpleValidatorin classContentSpec- Returns:
- Simple content model validator, if one can be directly constructed, or null to indicate that a DFA needs to be created.
-
rewrite
public ModelNode rewrite()
Description copied from class:ContentSpecMethod called as the first part of DFA construction, if necessary; will usually create simplerModelNodeinstances that will match definition this instance contains.- Specified by:
rewritein classContentSpec
-
-