Package org.apache.axiom.util.xml
Class XMLChar
- java.lang.Object
-
- org.apache.axiom.util.xml.XMLChar
-
public final class XMLChar extends Object
Contains utility methods to test characters for various properties defined by the XML specification.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisNameChar(char c)Determine if the given character matches theNameCharproduction in the XML specification.static booleanisNameStartChar(char c)Determine if the given character matches theNameStartCharproduction in the XML specification.static booleanisWhitespace(char c)Determine if the given character is whitespace according to the XML specification.
-
-
-
Method Detail
-
isWhitespace
public static boolean isWhitespace(char c)
Determine if the given character is whitespace according to the XML specification.- Parameters:
c- the character to examine- Returns:
trueif the character is whitespace,falseotherwise
-
isNameStartChar
public static boolean isNameStartChar(char c)
Determine if the given character matches theNameStartCharproduction in the XML specification.- Parameters:
c- the character to examine- Returns:
trueif the character is name start char,falseotherwise
-
isNameChar
public static boolean isNameChar(char c)
Determine if the given character matches theNameCharproduction in the XML specification.- Parameters:
c- the character to examine- Returns:
trueif the character is name char,falseotherwise
-
-