public class ChoiceContentSpec extends ContentSpec
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ChoiceContentSpec.Validator |
Modifier and Type | Field and Description |
---|---|
(package private) ContentSpec[] |
mContentSpecs |
(package private) boolean |
mHasMixed
Whether this is a mixed content model; mostly affects String
representation
|
(package private) boolean |
mNsAware |
mArity
Modifier | Constructor and Description |
---|---|
private |
ChoiceContentSpec(boolean nsAware,
char arity,
boolean mixed,
java.util.Collection<ContentSpec> specs) |
private |
ChoiceContentSpec(boolean nsAware,
char arity,
boolean mixed,
ContentSpec[] specs) |
Modifier and Type | Method and Description |
---|---|
static ChoiceContentSpec |
constructChoice(boolean nsAware,
char arity,
java.util.Collection<ContentSpec> specs) |
static ChoiceContentSpec |
constructMixed(boolean nsAware,
java.util.Collection<ContentSpec> specs) |
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.
|
protected static PrefixedNameSet |
namesetFromSpecs(boolean nsAware,
ContentSpec[] specs) |
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. |
java.lang.String |
toString() |
getArity, isLeaf, setArity
final boolean mNsAware
final boolean mHasMixed
final ContentSpec[] mContentSpecs
private ChoiceContentSpec(boolean nsAware, char arity, boolean mixed, ContentSpec[] specs)
private ChoiceContentSpec(boolean nsAware, char arity, boolean mixed, java.util.Collection<ContentSpec> specs)
public static ChoiceContentSpec constructChoice(boolean nsAware, char arity, java.util.Collection<ContentSpec> specs)
public static ChoiceContentSpec constructMixed(boolean nsAware, java.util.Collection<ContentSpec> specs)
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
public java.lang.String toString()
toString
in class java.lang.Object
protected static PrefixedNameSet namesetFromSpecs(boolean nsAware, ContentSpec[] specs)