public class EmptyValidator extends StructValidator
| Modifier and Type | Method | Description |
|---|---|---|
String |
fullyValid() |
If we ever get as far as element closing, things are all good;
can just return null.
|
static EmptyValidator |
getEmptyInstance() |
|
static EmptyValidator |
getPcdataInstance() |
|
StructValidator |
newInstance() |
Simple; can always (re)use instance itself; no state information
is kept.
|
String |
tryToValidate(PrefixedName elemName) |
Method called when a new (start) element is encountered within the
scope of parent element this validator monitors.
|
public static EmptyValidator getPcdataInstance()
public static EmptyValidator getEmptyInstance()
public StructValidator newInstance()
newInstance in class StructValidatorpublic String tryToValidate(PrefixedName elemName)
StructValidatortryToValidate in class StructValidatorpublic String fullyValid()
fullyValid in class StructValidatorCopyright © 2019 FasterXML. All rights reserved.