|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.bvalid.ValidatorOption
public class ValidatorOption
An option that can be used to configure a Validator.
Options are passed to the ValidatorFactory
when
obtaining a validator.
Field Summary | |
---|---|
static ValidatorOption |
CACHE_PARSED_GRAMMARS
Whether the validator should cache parsed grammars in memory after they have been successfully used to validate an instance document. |
static ValidatorOption |
FAIL_ON_MISSING_REFERENCED
Whether validation should fail when a schema referenced within the instance document cannot be found. |
Constructor Summary | |
---|---|
protected |
ValidatorOption(java.lang.String name,
java.lang.String description,
java.lang.String[] validValues,
java.lang.String defaultValue)
|
Method Summary | |
---|---|
java.lang.String |
getDefaultValue()
Get the default value for this option. |
java.lang.String |
getDescription()
Get the description of the option. |
java.lang.String |
getName()
Get the name of the option. |
java.lang.String[] |
getValidValues()
Get the set of valid values for this option. |
boolean |
isValidValue(java.lang.String value)
Tell whether the given value is valid for this option. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ValidatorOption FAIL_ON_MISSING_REFERENCED
public static final ValidatorOption CACHE_PARSED_GRAMMARS
Constructor Detail |
---|
protected ValidatorOption(java.lang.String name, java.lang.String description, java.lang.String[] validValues, java.lang.String defaultValue)
Method Detail |
---|
public java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String[] getValidValues()
null
.
public java.lang.String getDefaultValue()
null
.
public boolean isValidValue(java.lang.String value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |