public class XmlNames
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
XmlNames() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isName(java.lang.String value)
Returns true if the value is a legal XML name.
|
static boolean |
isNCName(java.lang.String token) |
static boolean |
isNCNmtoken(java.lang.String token)
This method returns true if the identifier is a "name token" as
defined by the XML Namespaces proposed recommendation.
|
static boolean |
isNmtoken(java.lang.String token)
This method returns true if the identifier is a "name token"
as defined in the XML specification.
|
static boolean |
isQualifiedName(java.lang.String value)
Returns true if the value is a legal "qualified" XML name, as defined
in the XML Namespaces proposed recommendation.
|
static boolean |
isUnqualifiedName(java.lang.String value)
Returns true if the value is a legal "unqualified" XML name, as
defined in the XML Namespaces proposed recommendation.
|
public static boolean isName(java.lang.String value)
value
- the string being testedpublic static boolean isUnqualifiedName(java.lang.String value)
value
- the string being testedpublic static boolean isQualifiedName(java.lang.String value)
value
- the string being testedpublic static boolean isNmtoken(java.lang.String token)
token
- the string being testedpublic static boolean isNCNmtoken(java.lang.String token)
token
- the string being testedisNmtoken(String)
public static boolean isNCName(java.lang.String token)