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 StructValidator
public java.lang.String tryToValidate(PrefixedName elemName)
StructValidator
tryToValidate
in class StructValidator
public java.lang.String fullyValid()
StructValidator
fullyValid
in class StructValidator