Package de.pdark.decentxml.validation
Class CharValidator
- java.lang.Object
-
- de.pdark.decentxml.validation.CharValidator
-
public class CharValidator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CharValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisBaseChar(char c)booleanisCombiningChar(char c)booleanisDigit(char c)booleanisExtender(char c)booleanisIdeographic(char c)booleanisLetter(char c)booleanisNameChar(char c)Return true if the character is valid inside of an XML namebooleanisNameStartChar(char c)Return true if the character is valid as the first one of an XML namejava.lang.StringisValid(int codePoint)Is this a valid unicode character as defined by the W3C?java.lang.StringisValid(XMLSource source, int offset)Verify the character atbooleanisWhitespace(char c)Is the character whitespace as defined by the W3C?
-
-
-
Method Detail
-
isValid
public java.lang.String isValid(XMLSource source, int offset)
Verify the character at- Parameters:
source-offset-- Returns:
-
isWhitespace
public boolean isWhitespace(char c)
Is the character whitespace as defined by the W3C?
-
isValid
public java.lang.String isValid(int codePoint)
Is this a valid unicode character as defined by the W3C?
-
isNameStartChar
public boolean isNameStartChar(char c)
Return true if the character is valid as the first one of an XML name
-
isNameChar
public boolean isNameChar(char c)
Return true if the character is valid inside of an XML name
-
isLetter
public boolean isLetter(char c)
-
isBaseChar
public boolean isBaseChar(char c)
-
isIdeographic
public boolean isIdeographic(char c)
-
isDigit
public boolean isDigit(char c)
-
isCombiningChar
public boolean isCombiningChar(char c)
-
isExtender
public boolean isExtender(char c)
-
-