|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.speexx.xml.XmlCharacterValidator
public final class XmlCharacterValidator
Utility class for checking names and characters for use in XML, the serialization format.
Don't refere to this class outside of this package cause it maybe
move later to the de.speexx.xml.sax.helpers package.
© Copyright 2005 Sascha Kohlmann under the terms of the GNU LGPL
| Method Summary | |
|---|---|
static boolean |
isBaseChar(char c)
Checks if the given character is in the scope of the XML BaseChar part. |
static boolean |
isChar(char c)
Checks if the given character is in the scope of the XML Char part. |
static boolean |
isCombiningChar(char c)
Checks if the given character is in the scope of the XML CombiningChar part. |
static boolean |
isDigit(char c)
Checks if the given character is in the scope of the XML Digit part. |
static boolean |
isExtender(char c)
Checks if the given character is in the scope of the XML Extender part. |
static boolean |
isIdeographic(char c)
Checks if the given character is in the scope of the XML Ideographic part. |
static boolean |
isLetter(char c)
Checks if the given character is in the scope of the XML Letter part. |
static boolean |
isName(CharSequence name)
Checks if the given String is in the scope of the
XML
Name part. |
static boolean |
isNameChar(char c)
Checks if the given character is in the scope of the XML NameChar part. |
static boolean |
isNcName(CharSequence name)
Checks if the given String is in the scope of the
XML
NCName part. |
static boolean |
isNcNameChar(char c)
Checks if the given character is in the scope of the XML namespace NCNameChar part. |
static boolean |
isNmToken(CharSequence name)
Checks if the given String is in the scope of the
XML
NmToken part. |
static boolean |
isS(char c)
Checks if the given character is in the scope of the XML space (S) part. |
static boolean |
isSpace(char c)
Checks if the given character is in the scope of the XML space (S) part. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isBaseChar(char c)
c - the character to test.
true if the character is part of the XML BaseChar
definition. Otherwise false.public static boolean isCombiningChar(char c)
c - the character to test.
true if the character is part of the XML
CombiningChar definition. Otherwise false.public static boolean isDigit(char c)
c - the character to test.
true if the character is part of the XML
Digit definition. Otherwise false.public static boolean isExtender(char c)
c - the character to test.
true if the character is part of the XML
Extender definition. Otherwise false.public static boolean isIdeographic(char c)
c - the character to test.
true if the character is part of the XML
Ideographic definition. Otherwise false.public static boolean isLetter(char c)
c - the character to test.
true if the character is part of the XML
Letter definition. Otherwise false.public static boolean isNameChar(char c)
c - the character to test.
true if the character is part of the XML
NameChar definition. Otherwise false.public static boolean isNcNameChar(char c)
c - the character to test.
true if the character is part of the XML namespace
NCNameChar definition. Otherwise false.public static boolean isNcName(CharSequence name)
String is in the scope of the
XML
NCName part.
name - the String to test.
true if the String is part of the XML
NCName definition. Otherwise false.public static boolean isName(CharSequence name)
String is in the scope of the
XML
Name part.
name - the String to test.
true if the String is part of the XML
Name definition. Otherwise false.public static boolean isNmToken(CharSequence name)
String is in the scope of the
XML
NmToken part.
name - the String to test.
true if the String is part of the XML
NmToken definition. Otherwise false.public static boolean isS(char c)
c - the character to test.
true if the character is part of the XML
space (S) definition. Otherwise false.public static boolean isSpace(char c)
c - the character to test.
true if the character is part of the XML
space (S) definition. Otherwise false.public static boolean isChar(char c)
Note: At this time of writing the tests for characters bigger then 0xFFFd is not possible cause a Java char is only definied with 16 Bit. This may work with the JDK 1.5 .
c - the character to test.
true if the character is part of the XML
Char definition. Otherwise false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||