|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crimson.util.XmlNames
This class contains static methods used to determine whether identifiers may appear in certain roles in XML documents. Such methods are used both to parse and to create such documents.
Field Summary | |
static String |
SPEC_XML_URI
Useful strings from the DOM Level 2 Spec |
static String |
SPEC_XMLNS_URI
|
Constructor Summary | |
private |
XmlNames()
|
Method Summary | |
static String |
getLocalPart(String qualifiedName)
Return the LocalPart of qualifiedName. |
static String |
getPrefix(String qualifiedName)
Return the Prefix of qualifiedName. |
static boolean |
isName(String value)
Returns true if the value is a legal XML name. |
static boolean |
isNCNmtoken(String token)
This method returns true if the identifier is a "name token" as defined by the XML Namespaces proposed recommendation. |
static boolean |
isNmtoken(String token)
This method returns true if the identifier is a "name token" as defined in the XML specification. |
static boolean |
isQualifiedName(String value)
Returns true if the value is a legal "qualified" XML name, as defined in the XML Namespaces proposed recommendation. |
static boolean |
isUnqualifiedName(String value)
Returns true if the value is a legal "unqualified" XML name, as defined in the XML Namespaces proposed recommendation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String SPEC_XML_URI
public static final String SPEC_XMLNS_URI
Constructor Detail |
private XmlNames()
Method Detail |
public static boolean isName(String value)
value
- the string being testedpublic static boolean isUnqualifiedName(String value)
value
- the string being testedpublic static boolean isQualifiedName(String value)
value
- the string being testedpublic static boolean isNmtoken(String token)
token
- the string being testedpublic static boolean isNCNmtoken(String token)
token
- the string being testedisNmtoken(java.lang.String)
public static String getPrefix(String qualifiedName)
qualifiedName
- name to find the Prefix of
public static String getLocalPart(String qualifiedName)
qualifiedName
- name to find the LocalPart of
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |