Package com.ctc.wstx.dtd
Class SeqContentSpec
- java.lang.Object
-
- com.ctc.wstx.dtd.ContentSpec
-
- com.ctc.wstx.dtd.SeqContentSpec
-
public class SeqContentSpec extends ContentSpec
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 Classes Modifier and Type Class Description (package private) static class
SeqContentSpec.Validator
Simple validator that can be used if all components of a sequence are leaf nodes, ie.
-
Field Summary
Fields Modifier and Type Field Description (package private) ContentSpec[]
mContentSpecs
(package private) boolean
mNsAware
-
Fields inherited from class com.ctc.wstx.dtd.ContentSpec
mArity
-
-
Constructor Summary
Constructors Constructor Description SeqContentSpec(boolean nsAware, char arity, ContentSpec[] subSpecs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SeqContentSpec
construct(boolean nsAware, char arity, java.util.Collection<ContentSpec> subSpecs)
StructValidator
getSimpleValidator()
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.ModelNode
rewrite()
Method called as the first part of DFA construction, if necessary; will usually create simplerModelNode
instances that will match definition this instance contains.private ModelNode
rewrite(ContentSpec[] specs, int first, int last)
java.lang.String
toString()
-
Methods inherited from class com.ctc.wstx.dtd.ContentSpec
getArity, isLeaf, setArity
-
-
-
-
Field Detail
-
mNsAware
final boolean mNsAware
-
mContentSpecs
final ContentSpec[] mContentSpecs
-
-
Constructor Detail
-
SeqContentSpec
public SeqContentSpec(boolean nsAware, char arity, ContentSpec[] subSpecs)
-
-
Method Detail
-
construct
public static SeqContentSpec construct(boolean nsAware, char arity, java.util.Collection<ContentSpec> subSpecs)
-
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 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: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
-
rewrite
private ModelNode rewrite(ContentSpec[] specs, int first, int last)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-