public class SeqContentSpec extends ContentSpec
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SeqContentSpec.Validator
Simple validator that can be used if all components of a sequence
are leaf nodes, ie.
|
Modifier and Type | Field and Description |
---|---|
(package private) ContentSpec[] |
mContentSpecs |
(package private) boolean |
mNsAware |
mArity
Constructor and Description |
---|
SeqContentSpec(boolean nsAware,
char arity,
ContentSpec[] subSpecs) |
Modifier and Type | Method and 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 simpler
ModelNode instances that will
match definition this instance contains. |
private ModelNode |
rewrite(ContentSpec[] specs,
int first,
int last) |
java.lang.String |
toString() |
getArity, isLeaf, setArity
final boolean mNsAware
final ContentSpec[] mContentSpecs
public SeqContentSpec(boolean nsAware, char arity, ContentSpec[] subSpecs)
public static SeqContentSpec construct(boolean nsAware, char arity, java.util.Collection<ContentSpec> subSpecs)
public StructValidator getSimpleValidator()
ContentSpec
getSimpleValidator
in class ContentSpec
public ModelNode rewrite()
ContentSpec
ModelNode
instances that will
match definition this instance contains.rewrite
in class ContentSpec
private ModelNode rewrite(ContentSpec[] specs, int first, int last)
public java.lang.String toString()
toString
in class java.lang.Object