org.exolab.castor.xml.validators
public class NameValidator extends StringValidator
Version: $Revision: 1.2 $ $Date: 2003/03/03 09:57:21 $
Field Summary | |
---|---|
static short | CDATA |
static short | NCNAME |
static short | NMTOKEN |
Constructor Summary | |
---|---|
NameValidator()
Creates a new NameValidator with the default validation
set to NCName
| |
NameValidator(short type)
Creates a new NameValidator with the given validation type |
Method Summary | |
---|---|
void | setRequired(boolean required)
Sets whether or not a String is required (non null) |
void | validate(String value, ValidationContext context) |
void | validate(Object object)
Validates the given Object
|
void | validate(Object object, ValidationContext context)
Validates the given Object
|
Parameters: type the validation type for this NameValidator
Parameters: required the flag indicating whether Strings are required
Parameters: object the Object to validate
Parameters: object the Object to validate context the ValidationContext