|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ssx.xml.output.XmlNameUtil
A utility class for dealing with XML characters NOTE: This class is not fully implemented. It will not give the correct results for any of the more esoteric unicode characters.
Field Summary | |
static int |
BASE_CHAR
|
static int |
COMBINING_CHAR
|
static int |
DIGIT
|
static int |
EXTENDER
|
static int |
IDEOGRAPHIC
|
static int |
INVALID
Not a valid XML character |
static int |
LETTER
|
Method Summary | |
static int |
getCharType(char ch)
Return an integer representing the XML character class this character belongs to according the the W3C XML 1.0 specification. |
static String |
getEntityRef(char ch)
Return the entity reference for the given char as defined by the W3C XML 1.0 specification. |
static boolean |
isBaseChar(char ch)
Is the given char a valid BASE_CHAR as defined by the W3C XML 1.0 specification. |
static boolean |
isCombiningChar(char ch)
Is the given char a valid COMBINING_CHAR as defined by the W3C XML 1.0 specification. |
static boolean |
isDigit(char ch)
Is the given char a valid DIGIT as defined by the W3C XML 1.0 specification. |
static boolean |
isExtender(char ch)
Is the given char a valid EXTENDER as defined by the W3C XML 1.0 specification. |
static boolean |
isIdeographic(char ch)
Is the given char a valid IDEOGRAPHIC as defined by the W3C XML 1.0 specification. |
static boolean |
isLetter(char ch)
Is the given char a valid LETTER as defined by the W3C XML 1.0 specification. |
static void |
validateName(String name)
Is the given char a valid name as defined by the W3C XML 1.0 specification. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int INVALID
public static final int LETTER
public static final int BASE_CHAR
public static final int IDEOGRAPHIC
public static final int COMBINING_CHAR
public static final int DIGIT
public static final int EXTENDER
Method Detail |
public static int getCharType(char ch)
ch
- The character to get the type of
public static boolean isLetter(char ch)
ch
- The character to test
public static boolean isBaseChar(char ch)
ch
- The character to test
public static boolean isIdeographic(char ch)
ch
- The character to test
public static boolean isCombiningChar(char ch)
ch
- The character to test
public static boolean isDigit(char ch)
ch
- The character to test
public static boolean isExtender(char ch)
ch
- The character to test
public static void validateName(String name)
name
- The XML name to testpublic static String getEntityRef(char ch)
ch
- The character to translate into an entity ref
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |