Package de.pdark.decentxml.validation
Class CharValidator
java.lang.Object
de.pdark.decentxml.validation.CharValidator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisBaseChar(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 nameisValid(int codePoint) Is this a valid unicode character as defined by the W3C?Verify the character atbooleanisWhitespace(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)
-