static final class TokenContentSpec.Validator extends StructValidator
Modifier and Type | Field and Description |
---|---|
(package private) char |
mArity |
(package private) int |
mCount |
(package private) PrefixedName |
mElemName |
Constructor and Description |
---|
Validator(char arity,
PrefixedName elemName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
fullyValid()
Method called when the end element of the scope this validator
validates is encountered.
|
StructValidator |
newInstance()
Rules for reuse are simple: if we can have any number of
repetitions, we can just use a shared root 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 mElemName
int mCount
public Validator(char arity, PrefixedName elemName)
public StructValidator newInstance()
newInstance
in class StructValidator
public java.lang.String tryToValidate(PrefixedName elemName)
StructValidator
tryToValidate
in class StructValidator
public java.lang.String fullyValid()
StructValidator
fullyValid
in class StructValidator