public class XmlNames
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
isName(java.lang.String value) |
Returns true if the value is a legal XML name.
|
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(java.lang.String)Copyright © 2017 Oracle Corporation. All rights reserved.