| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ContentSpec[] | |
| pack-priv final boolean | mHasMixed
Whether this is a mixed content model; mostly affects String representation |
| pack-priv final boolean |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ChoiceContentSpec | |
| public static ChoiceContentSpec | |
| public StructValidator | getSimpleValidator()
Implements abstract com. 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 | |
| public ModelNode | rewrite()
Implements abstract com. Method called as the first part of DFA construction, if necessary;
will usually create simpler |
| public String |
| mContentSpecs | back to summary |
|---|---|
| pack-priv final ContentSpec[] mContentSpecs | |
| mHasMixed | back to summary |
|---|---|
| pack-priv final boolean mHasMixed Whether this is a mixed content model; mostly affects String representation | |
| mNsAware | back to summary |
|---|---|
| pack-priv final boolean mNsAware | |
| ChoiceContentSpec | back to summary |
|---|---|
| private ChoiceContentSpec(boolean nsAware, char arity, boolean mixed, ContentSpec[] specs) | |
| ChoiceContentSpec | back to summary |
|---|---|
| private ChoiceContentSpec(boolean nsAware, char arity, boolean mixed, Collection<ContentSpec> specs) | |
| constructChoice | back to summary |
|---|---|
| public static ChoiceContentSpec constructChoice(boolean nsAware, char arity, Collection<ContentSpec> specs) | |
| constructMixed | back to summary |
|---|---|
| public static ChoiceContentSpec constructMixed(boolean nsAware, Collection<ContentSpec> specs) | |
| getSimpleValidator | back to summary |
|---|---|
| public StructValidator getSimpleValidator() Implements abstract com. Doc from com. 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.
| |
| namesetFromSpecs | back to summary |
|---|---|
| protected static PrefixedNameSet namesetFromSpecs(boolean nsAware, ContentSpec[] specs) | |
| rewrite | back to summary |
|---|---|
| public ModelNode rewrite() Implements abstract com. Doc from com. Method called as the first part of DFA construction, if necessary;
will usually create simpler
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final char | |
| pack-priv int | |
| pack-priv final PrefixedNameSet |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | fullyValid()
Implements abstract com. Method called when the end element of the scope this validator validates is encountered. |
| public StructValidator | newInstance()
Implements abstract com. Rules for reuse are simple: if we can have any number of repetitions, we can just use a shared root instance. |
| public String | tryToValidate(PrefixedName elemName)
Implements abstract com. Method called when a new (start) element is encountered within the scope of parent element this validator monitors. |
| mArity | back to summary |
|---|---|
| pack-priv final char mArity | |
| mCount | back to summary |
|---|---|
| pack-priv int mCount | |
| mNames | back to summary |
|---|---|
| pack-priv final PrefixedNameSet mNames | |
| Validator | back to summary |
|---|---|
| public Validator(char arity, PrefixedNameSet names) | |
| fullyValid | back to summary |
|---|---|
| public String fullyValid() Implements abstract com. Doc from com. Method called when the end element of the scope this validator validates is encountered. It should make sure that the content model is valid, and if not, to construct an error message. | |
| newInstance | back to summary |
|---|---|
| public StructValidator newInstance() Implements abstract com. Rules for reuse are simple: if we can have any number of repetitions, we can just use a shared root instance. Although its count variable will get updated this doesn't really matter as it won't be used. Otherwise a new instance has to be created always, to keep track of instance counts.
| |
| tryToValidate | back to summary |
|---|---|
| public String tryToValidate(PrefixedName elemName) Implements abstract com. Doc from com. Method called when a new (start) element is encountered within the scope of parent element this validator monitors. | |