Package de.pdark.decentxml.validation
Class CharValidator
java.lang.Object
de.pdark.decentxml.validation.CharValidator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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 nameisValid
(int codePoint) Is this a valid unicode character as defined by the W3C?Verify the character atboolean
isWhitespace
(char c) Is the character whitespace as defined by the W3C?
-
Constructor Details
-
CharValidator
public CharValidator()
-
-
Method Details
-
isValid
Verify the character at- Parameters:
source
-offset
-- Returns:
-
isWhitespace
public boolean isWhitespace(char c) Is the character whitespace as defined by the W3C? -
isValid
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)
-