public class PEFValidator extends AbstractFactory implements Validator
| Modifier and Type | Class and Description |
|---|---|
static class |
PEFValidator.Mode
Defines the modes available to the validator.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FEATURE_MODE
Key for getFeature/setFeature,
corresponding value should be a
PEFValidator.Mode value |
| Constructor and Description |
|---|
PEFValidator()
Creates a new PEFValidator
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getFeature(java.lang.String key)
Gets the value of a feature used by this Factory
|
java.lang.Object |
getProperty(java.lang.String key)
Gets the value of a read-only property that applies to all objects returned
by this Factory.
|
java.io.InputStream |
getReportStream()
Gets the report for the latest call to validate
|
void |
setFeature(java.lang.String key,
java.lang.Object value)
Sets a feature for new Objects returned by this Factory
|
boolean |
validate(java.net.URL input)
Validates the resource at the given URL
|
compareTo, getDescription, getDisplayName, getIdentifier, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getDisplayName, getIdentifierpublic static final java.lang.String FEATURE_MODE
PEFValidator.Mode valuepublic boolean validate(java.net.URL input)
Validatorpublic java.io.InputStream getReportStream()
ValidatorgetReportStream in interface Validatorpublic java.lang.Object getFeature(java.lang.String key)
FactorygetFeature in interface Factorykey - the key for the featurepublic java.lang.Object getProperty(java.lang.String key)
FactorygetProperty in interface Factorykey - the name of the property to getpublic void setFeature(java.lang.String key,
java.lang.Object value)
FactorysetFeature in interface Factorykey - the key for the featurevalue - the value of the feature