org.apache.xerces.impl.dv
Interface DatatypeValidator


public interface DatatypeValidator

The interface that a DTD datatype must implement. The implementation of this interface must be thread-safe.

Version:
$Id: DatatypeValidator.java,v 1.3 2002/01/29 01:15:11 lehors Exp $
Author:
Sandy Gao, IBM

Method Summary
 java.lang.Object validate(java.lang.String content, ValidationContext context)
          validate a given string against this DV
 

Method Detail

validate

public java.lang.Object validate(java.lang.String content,
                                 ValidationContext context)
                          throws InvalidDatatypeValueException
validate a given string against this DV
Parameters:
content - the string value that needs to be validated
context - the validation context
Returns:
the actual value of the string value (most likely a normalized string, since all types in DTD are string types.)


Copyright © 1999-2002 Apache XML Project. All Rights Reserved.