static final class SeqContentSpec.Validator extends StructValidator
| Modifier and Type | Field and Description |
|---|---|
(package private) char |
mArity |
(package private) PrefixedName[] |
mNames |
(package private) int |
mRounds
Number of full repetitions done over the sequence
|
(package private) int |
mStep
Expected next element in the sequence
|
| Constructor and Description |
|---|
Validator(char arity,
PrefixedName[] names) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static java.lang.String |
concatNames(PrefixedName[] names) |
private java.lang.String |
expElem(int step) |
java.lang.String |
fullyValid()
Method called when the end element of the scope this validator
validates is encountered.
|
StructValidator |
newInstance()
Sequence content specification is always stateful; can not
use a shared instance...
|
java.lang.String |
tryToValidate(PrefixedName elemName)
Method called when a new (start) element is encountered within the
scope of parent element this validator monitors.
|
final char mArity
final PrefixedName[] mNames
int mRounds
int mStep
public Validator(char arity,
PrefixedName[] names)
public StructValidator newInstance()
newInstance in class StructValidatorpublic java.lang.String tryToValidate(PrefixedName elemName)
StructValidatortryToValidate in class StructValidatorpublic java.lang.String fullyValid()
StructValidatorfullyValid in class StructValidatorprivate java.lang.String expElem(int step)
static final java.lang.String concatNames(PrefixedName[] names)