org.exolab.castor.xml.validators
Class ValidationUtils
java.lang.Object
org.exolab.castor.xml.validators.ValidationUtils
public class ValidationUtils
extends java.lang.Object
A class for performing simple validation
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:52 $static boolean | isCDATA(String str) - Checks the characters of the given String to determine if they
syntactically match the production of a CDATA
|
static boolean | isCombiningChar(char ch) - Checks the given character to determine if it is a valid
CombiningChar as defined by the W3C XML 1.0 Recommendation
|
static boolean | isDigit(char ch)
|
static boolean | isExtender(char ch) - Returns true if the given character is a valid XML Extender
character, according to the XML 1.0 specification
|
static boolean | isLetter(char ch)
|
static boolean | isNCName(String str) - Checks the characters of the given String to determine if they
syntactically match the production of an NCName as defined
by the W3C XML Namespaces recommendation
|
static boolean | isNCNameChar(char ch) - Checks the the given character to determine if it is
a valid NCNameChar as defined by the W3C XML
Namespaces recommendation
|
static boolean | isNMToken(String str) - Checks the characters of the given String to determine if they
syntactically match the production of an NMToken
|
static boolean | isQName(String str) - Checks the characters of the given String to determine if they
syntactically match the production of an QName as defined
by the W3C XML Namespaces recommendation
|
isCDATA
public static boolean isCDATA(String str)
Checks the characters of the given String to determine if they
syntactically match the production of a CDATA
str
- the String to check
- true if the given String follows the Syntax of an NMToken
isCombiningChar
public static boolean isCombiningChar(char ch)
Checks the given character to determine if it is a valid
CombiningChar as defined by the W3C XML 1.0 Recommendation
- true if the given character is a CombiningChar
isDigit
public static boolean isDigit(char ch)
ch
- the character to check
- true if the given character is a digit
isExtender
public static boolean isExtender(char ch)
Returns true if the given character is a valid XML Extender
character, according to the XML 1.0 specification
ch
- the character to check
- true if the character is a valid XML Extender character
isLetter
public static boolean isLetter(char ch)
ch
- the character to check
- true if the given character is a letter
isNCName
public static boolean isNCName(String str)
Checks the characters of the given String to determine if they
syntactically match the production of an NCName as defined
by the W3C XML Namespaces recommendation
str
- the String to check
- true if the given String follows the Syntax of an NCName
isNCNameChar
public static boolean isNCNameChar(char ch)
Checks the the given character to determine if it is
a valid NCNameChar as defined by the W3C XML
Namespaces recommendation
- true if the given char is an NCNameChar
isNMToken
public static boolean isNMToken(String str)
Checks the characters of the given String to determine if they
syntactically match the production of an NMToken
str
- the String to check
- true if the given String follows the Syntax of an NMToken
isQName
public static boolean isQName(String str)
Checks the characters of the given String to determine if they
syntactically match the production of an QName as defined
by the W3C XML Namespaces recommendation
str
- the String to check
- true if the given String follows the Syntax of an QName
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com