org.exolab.castor.xml.validators
Class NameValidator
- TypeValidator
public class NameValidator
The Name Validation class. This class handles validation
for XML Name production types such as NCName and NMToken
$Revision: 1.2 $ $Date: 2003/03/03 09:57:21 $
NameValidator() - Creates a new NameValidator with the default validation
set to NCName
|
NameValidator(short type) - Creates a new NameValidator with the given validation type
|
void | setRequired(boolean required) - Sets whether or not a String is required (non null)
|
void | validate(Object object) - Validates the given Object
|
void | validate(Object object, ValidationContext context) - Validates the given Object
|
void | validate(String value, ValidationContext context) - Validates the given String against the regular expression pattern
of this PatternValidator.
|
normalize , setFixed , setFixedValue , setLength , setMaxLength , setMinLength , setRequired , setWhiteSpace , validate , validate , validate |
CDATA
public static final short CDATA
NCNAME
public static final short NCNAME
NMTOKEN
public static final short NMTOKEN
NameValidator
public NameValidator()
Creates a new NameValidator with the default validation
set to NCName
NameValidator
public NameValidator(short type)
Creates a new NameValidator with the given validation type
type
- the validation type for this NameValidator
setRequired
public void setRequired(boolean required)
Sets whether or not a String is required (non null)
- setRequired in interface StringValidator
required
- the flag indicating whether Strings are required
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com