public final class DFAValidator extends StructValidator
| Modifier and Type | Field and Description |
|---|---|
(package private) DFAState |
mState
For root validator instance, the start state of DFA; for other
instances, current state.
|
| Constructor and Description |
|---|
DFAValidator(DFAState initialState) |
| 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()
Method that should be called to get the actual usable validator
instance, from the 'template' validator.
|
java.lang.String |
tryToValidate(PrefixedName elemName)
Method called when a new (start) element is encountered within the
scope of parent element this validator monitors.
|
DFAState mState
public DFAValidator(DFAState initialState)
public StructValidator newInstance()
StructValidatornewInstance in class StructValidatorpublic java.lang.String tryToValidate(PrefixedName elemName)
StructValidatortryToValidate in class StructValidatorpublic java.lang.String fullyValid()
StructValidatorfullyValid in class StructValidator