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: 6605 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
static short | CDATA- XML name type CDATA.
|
static short | NCNAME- XML name type NCName.
|
static short | NMTOKEN- XML name type NMTOKEN.
|
NameValidator()- Creates a new NameValidator with the default validation set to NCName.
|
NameValidator(short type)- Creates a new NameValidator with the given validation type.
|
clearFixed, normalize, setFixed, setFixedValue, setLength, setMaxLength, setMinLength, setRequired, setWhiteSpace, validate, validate, validate |
CDATA
public static final short CDATA
XML name type CDATA. @deprecated - use XMLConstants.NAME_TYPE_CDATA.
Retained for backwards-compatility.
NCNAME
public static final short NCNAME
XML name type NCName. @deprecated - use XMLConstants.NAME_TYPE_NCNAME.
Retained for backwards-compatility.
NMTOKEN
public static final short NMTOKEN
XML name type NMTOKEN. @deprecated - use XMLConstants.NAME_TYPE_NCTOKEN.
Retained for backwards-compatility.
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-2008. All rights reserved http://www.intalio.com