public class PEFValidator extends AbstractFactory implements Validator
Modifier and Type | Class | Description |
---|---|---|
static class |
PEFValidator.Mode |
Defines the modes available to the validator.
|
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
FEATURE_MODE |
Key for getFeature/setFeature,
corresponding value should be a
PEFValidator.Mode value |
Constructor | Description |
---|---|
PEFValidator() |
Creates a new PEFValidator
|
Modifier and Type | Method | 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, toString
getDescription, getDisplayName, getIdentifier
public static final java.lang.String FEATURE_MODE
PEFValidator.Mode
valuepublic boolean validate(java.net.URL input)
Validator
public java.io.InputStream getReportStream()
Validator
getReportStream
in interface Validator
public java.lang.Object getFeature(java.lang.String key)
Factory
getFeature
in interface Factory
key
- the key for the featurepublic java.lang.Object getProperty(java.lang.String key)
Factory
getProperty
in interface Factory
key
- the name of the property to getpublic void setFeature(java.lang.String key, java.lang.Object value)
Factory
setFeature
in interface Factory
key
- the key for the featurevalue
- the value of the feature