Package com.ctc.wstx.dtd
Class SeqContentSpec
java.lang.Object
com.ctc.wstx.dtd.ContentSpec
com.ctc.wstx.dtd.SeqContentSpec
Content specification that defines model that has sequence of one or more
elements that have to come in the specified order.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classSimple validator that can be used if all components of a sequence are leaf nodes, ie. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ContentSpec[](package private) final booleanFields inherited from class com.ctc.wstx.dtd.ContentSpec
mArity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SeqContentSpecconstruct(boolean nsAware, char arity, Collection<ContentSpec> subSpecs) 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.rewrite()Method called as the first part of DFA construction, if necessary; will usually create simplerModelNodeinstances that will match definition this instance contains.private ModelNoderewrite(ContentSpec[] specs, int first, int last) toString()Methods inherited from class com.ctc.wstx.dtd.ContentSpec
getArity, isLeaf, setArity
-
Field Details
-
mNsAware
final boolean mNsAware -
mContentSpecs
-
-
Constructor Details
-
SeqContentSpec
-
-
Method Details
-
construct
public static SeqContentSpec construct(boolean nsAware, char arity, Collection<ContentSpec> subSpecs) -
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
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
-
rewrite
-
toString
-