FileDocCategorySizeDatePackage
StringDatatypeValidator.javaAPI DocJava SE 6 API2191Tue Jun 10 00:22:42 BST 2008com.sun.org.apache.xerces.internal.impl.dv.dtd

StringDatatypeValidator

public class StringDatatypeValidator extends Object implements DatatypeValidator

StringValidator validates that XML content is a W3C string type.

The string datatype represents character strings in XML. The value space of string is the set of finite-length sequences of characters (as defined in [XML 1.0 Recommendation (Second Edition)]) that match the Char production from [XML 1.0 Recommendation (Second Edition)]. A character is an atomic unit of communication; it is not further specified except to note that every character has a corresponding Universal Code Set code point ([ISO 10646],[Unicode] and [Unicode3]), which is an integer.

xerces.internal
version
$Id: StringDatatypeValidator.java,v 1.2.6.1 2005/09/09 07:19:18 neerajbj Exp $

Fields Summary
Constructors Summary
public StringDatatypeValidator()

    
Methods Summary
public voidvalidate(java.lang.String content, com.sun.org.apache.xerces.internal.impl.dv.ValidationContext context)
Checks that "content" string is valid string value. If invalid a Datatype validation exception is thrown.

param
content the string value that needs to be validated
param
context the validation context
throws
InvalidDatatypeException if the content is invalid according to the rules for the validators
see
InvalidDatatypeValueException