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 boolean
isBaseChar(char c)
boolean
isCombiningChar(char c)
boolean
isDigit(char c)
boolean
isExtender(char c)
boolean
isIdeographic(char c)
boolean
isLetter(char c)
boolean
isNameChar(char c)
Return true if the character is valid inside of an XML nameboolean
isNameStartChar(char c)
Return true if the character is valid as the first one of an XML namejava.lang.String
isValid(int codePoint)
Is this a valid unicode character as defined by the W3C?java.lang.String
isValid(XMLSource source, int offset)
Verify the character atboolean
isWhitespace(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)
-
-