|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ximpleware.parser.XMLChar
public class XMLChar
XimpleWare's XMLChar implementation. Creation date: (2/9/04 6:27:46 PM)
| Field Summary | |
|---|---|
static byte[] |
UNI_CHARS
Character flags. |
static int |
XML_CONTENT
Content character mask. |
static int |
XML_NAME
Name character mask. |
static int |
XML_NAME_START
Name start character mask. |
static int |
XML_NCNAME
NCName character mask. |
static int |
XML_NCNAME_START
NCName start character mask. |
static int |
XML_PUBID
Pubid character mask. |
static int |
XML_SPACE
Space character mask. |
static int |
XML_VALID
Valid character mask. |
| Constructor Summary | |
|---|---|
XMLChar()
|
|
| Method Summary | |
|---|---|
static char |
highSurrogate(int c)
Returns the high surrogate from a Unicode scalar value |
static boolean |
isContentChar(int c)
Returns true if the specified character can be considered XML content. |
static boolean |
isHighSurrogate(int c)
Returns whether the given Unicode scalar value is a high surrogate |
static boolean |
isInvalidChar(int c)
Returns true if the specified character is invalid. |
static boolean |
isLowSurrogate(int c)
Returns whether the given Unicode scalar value is a low surrogate |
static boolean |
isMarkupChar(int c)
Returns true if the specified character can be considered markup. |
static boolean |
isNameChar(int c)
Returns true if the specified character is a valid name character as defined by production [4] in the XML 1.0 specification. |
static boolean |
isNameStartChar(int c)
Returns true if the specified character is a valid name start character as defined by production [5] in the XML 1.0 specification. |
static boolean |
isNCNameChar(int c)
Returns true if the specified character is a valid NCName character as defined by production [5] in Namespaces in XML recommendation. |
static boolean |
isNCNameStartChar(int c)
Returns true if the specified character is a valid NCName start character as defined by production [4] in Namespaces in XML recommendation. |
static boolean |
isNmtoken(String nmToken)
|
static boolean |
isPubidChar(int c)
Returns true if the specified character is a valid Pubid character as defined by production [13] in the XML 1.0 specification. |
static boolean |
isSpaceChar(int c)
Returns true if the specified character is a space character as defined by production [3] in the XML 1.0 specification. |
static boolean |
isSupplementalChar(int c)
Returns true if the specified character is a supplemental character. |
static boolean |
isValidChar(int c)
Returns true if the specified character is valid. |
static char |
lowSurrogate(int c)
Returns the low surrogate from a Unicode scalar value |
static int |
scalarValueSurrogate(char hi,
char lo)
Returns Unicode scalar value corresponding to the given surrogates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte[] UNI_CHARS
public static final int XML_VALID
public static final int XML_SPACE
public static final int XML_NAME_START
public static final int XML_NAME
public static final int XML_PUBID
public static final int XML_CONTENT
This is an optimization for the inner loop of character scanning.
public static final int XML_NCNAME_START
public static final int XML_NCNAME
| Constructor Detail |
|---|
public XMLChar()
| Method Detail |
|---|
public static char highSurrogate(int c)
c - The Unicode scalar value to "split".public static boolean isContentChar(int c)
c - The character to check.public static boolean isHighSurrogate(int c)
c - The character to check.public static boolean isInvalidChar(int c)
c - The character to check.public static boolean isLowSurrogate(int c)
c - The character to check.public static boolean isMarkupChar(int c)
c - The character to check.public static boolean isNameChar(int c)
c - The character to check.public static boolean isNameStartChar(int c)
c - The character to check.public static boolean isNCNameChar(int c)
c - The character to check.public static boolean isNCNameStartChar(int c)
c - The character to check.public static boolean isNmtoken(String nmToken)
public static boolean isPubidChar(int c)
c - The character to check.public static boolean isSpaceChar(int c)
c - The character to check.public static boolean isSupplementalChar(int c)
c - The character to check.public static boolean isValidChar(int c)
If the program chooses to apply the mask directly to the
UNI_CHARS array, then they are responsible for checking
the surrogate character range.
c - The character to check.public static char lowSurrogate(int c)
c - The Unicode scalar value to "split".
public static int scalarValueSurrogate(char hi,
char lo)
hi - The high surrogate.lo - The low surrogate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||