| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | SeqContentSpec.
Simple validator that can be used if all components of a sequence are leaf nodes, ie. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ContentSpec[] | |
| pack-priv final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static SeqContentSpec | |
| 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. |
| public ModelNode | rewrite()
Implements abstract com. Method called as the first part of DFA construction, if necessary;
will usually create simpler |
| private ModelNode | |
| public String |
| mContentSpecs | back to summary |
|---|---|
| pack-priv final ContentSpec[] mContentSpecs | |
| mNsAware | back to summary |
|---|---|
| pack-priv final boolean mNsAware | |
| SeqContentSpec | back to summary |
|---|---|
| public SeqContentSpec(boolean nsAware, char arity, ContentSpec[] subSpecs) | |
| construct | back to summary |
|---|---|
| public static SeqContentSpec construct(boolean nsAware, char arity, Collection<ContentSpec> subSpecs) | |
| 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.
| |
| 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
| |
| rewrite | back to summary |
|---|---|
| private ModelNode rewrite(ContentSpec[] specs, int first, int last) | |
| 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 final PrefixedName[] | |
| pack-priv int | mRounds
Number of full repetitions done over the sequence |
| pack-priv int | mStep
Expected next element in the sequence |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static final String | |
| private String | |
| 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. Sequence content specification is always stateful; can not use a shared 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 | |
| mNames | back to summary |
|---|---|
| pack-priv final PrefixedName[] mNames | |
| mRounds | back to summary |
|---|---|
| pack-priv int mRounds Number of full repetitions done over the sequence | |
| mStep | back to summary |
|---|---|
| pack-priv int mStep Expected next element in the sequence | |
| Validator | back to summary |
|---|---|
| public Validator(char arity, PrefixedName[] names) | |
| concatNames | back to summary |
|---|---|
| pack-priv static final String concatNames(PrefixedName[] names) | |
| expElem | back to summary |
|---|---|
| private String expElem(int step) | |
| 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. Sequence content specification is always stateful; can not use a shared instance... so let's create new instance:
| |
| 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. | |