public class XmlNames extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
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)
Copyright © 2005-2013 Oracle. All Rights Reserved.