Public Member Functions | Static Public Attributes

org.exolab.castor.xml.validators.NameValidator Class Reference

Inheritance diagram for org.exolab.castor.xml.validators.NameValidator:
org.exolab.castor.xml.validators.StringValidator org.exolab.castor.xml.validators.PatternValidator org.exolab.castor.xml.TypeValidator

List of all members.

Public Member Functions

 NameValidator ()
 NameValidator (short type)
void setRequired (boolean required)
void validate (String value, ValidationContext context) throws ValidationException
void validate (Object object) throws ValidationException
void validate (Object object, ValidationContext context) throws ValidationException

Static Public Attributes

static final short NCNAME = 0
static final short NMTOKEN = 1
static final short CDATA = 2

Detailed Description

The Name Validation class. This class handles validation for XML Name production types such as NCName and NMToken

Author:
Keith Visco
Version:
Revision:
1.2
Date:
2003/03/03 09:57:21

Constructor & Destructor Documentation

org.exolab.castor.xml.validators.NameValidator.NameValidator (  ) 

Creates a new NameValidator with the default validation set to NCName

org.exolab.castor.xml.validators.NameValidator.NameValidator ( short  type  ) 

Creates a new NameValidator with the given validation type

Parameters:
type the validation type for this NameValidator

Member Function Documentation

void org.exolab.castor.xml.validators.NameValidator.setRequired ( boolean  required  ) 

Sets whether or not a String is required (non null)

Parameters:
required the flag indicating whether Strings are required

Reimplemented from org.exolab.castor.xml.validators.StringValidator.

void org.exolab.castor.xml.validators.NameValidator.validate ( Object  object,
ValidationContext  context 
) throws ValidationException

Validates the given Object

Parameters:
object the Object to validate
context the ValidationContext

Reimplemented from org.exolab.castor.xml.validators.StringValidator.

References org.exolab.castor.xml.validators.NameValidator.validate().

void org.exolab.castor.xml.validators.NameValidator.validate ( Object  object  )  throws ValidationException

Validates the given Object

Parameters:
object the Object to validate

Reimplemented from org.exolab.castor.xml.validators.StringValidator.

References org.exolab.castor.xml.validators.NameValidator.validate().


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties