static final class ChoiceContentSpec.Validator extends StructValidator
| Modifier and Type | Field and Description |
|---|---|
(package private) char |
mArity |
(package private) int |
mCount |
(package private) PrefixedNameSet |
mNames |
| Constructor and Description |
|---|
Validator(char arity,
PrefixedNameSet names) |
| 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 PrefixedNameSet mNames
int mCount
public Validator(char arity,
PrefixedNameSet 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 StructValidator