|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crimson.util.XmlChars
Methods in this class are used to determine whether characters may appear in certain roles in XML documents. Such methods are used both to parse and to create such documents.
Constructor Summary | |
private |
XmlChars()
|
Method Summary | |
static boolean |
isChar(int ucs4char)
Returns true if the argument, a UCS-4 character code, is valid in XML documents. |
private static boolean |
isCompatibilityChar(char c)
|
private static boolean |
isDigit(char c)
|
private static boolean |
isExtender(char c)
|
static boolean |
isLetter(char c)
Returns true if the character is an XML "letter". |
private static boolean |
isLetter2(char c)
|
static boolean |
isNameChar(char c)
Returns true if the character is allowed to be a non-initial character in names according to the XML recommendation. |
static boolean |
isNCNameChar(char c)
Returns true if the character is allowed to be a non-initial character in unscoped names according to the rules of the XML Namespaces proposed recommendation. |
static boolean |
isSpace(char c)
Returns true if the character is allowed where XML supports whitespace characters, false otherwise. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private XmlChars()
Method Detail |
public static boolean isChar(int ucs4char)
char
datatype
in the Java Programming Language represents Unicode characters,
including unpaired surrogates.)
In XML, UCS-4 characters can also be encoded by the use of character references such as �, which happens to refer to a character that is disallowed in XML documents. UCS-4 characters allowed in XML documents can be expressed with one or two Unicode characters.
ucs4char
- The 32-bit UCS-4 character being tested.public static boolean isNameChar(char c)
isNCNameChar(char)
,
isLetter(char)
public static boolean isNCNameChar(char c)
isNameChar(char)
,
isLetter(char)
public static boolean isSpace(char c)
public static boolean isLetter(char c)
isNameChar(char)
,
isNCNameChar(char)
private static boolean isCompatibilityChar(char c)
private static boolean isLetter2(char c)
private static boolean isDigit(char c)
private static boolean isExtender(char c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |