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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TokenContentSpec
public TokenContentSpec(char arity,
NameKey elemName)
construct
public static TokenContentSpec construct(char arity,
NameKey elemName)
getDummySpec
public static TokenContentSpec getDummySpec()
isLeaf
public boolean isLeaf()
- Overrides:
isLeaf
in class ContentSpec
getName
public NameKey getName()
getSimpleValidator
public StructValidator 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 class ContentSpec
- 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:
ContentSpec
- Method called as the first part of DFA construction, if necessary;
will usually create simpler
ModelNode
instances that will
match definition this instance contains.
- Specified by:
rewrite
in class ContentSpec
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object