gnu.xml
public class XName extends Symbol implements Externalizable
| Constructor Summary | |
|---|---|
| XName() | |
| XName(Symbol symbol, NamespaceBinding namespaceNodes) | |
| Method Summary | |
|---|---|
| static int | checkName(String value) Check if a string is a valid NMTOKEN, Name, or NCName. |
| NamespaceBinding | getNamespaceNodes() Namespace nodes associated with an element.
|
| static boolean | isName(String value) |
| static boolean | isNamePart(int ch) |
| static boolean | isNameStart(int ch) |
| static boolean | isNCName(String value) |
| static boolean | isNmToken(String value) |
| void | readExternal(ObjectInput in) |
| void | setNamespaceNodes(NamespaceBinding nodes) |
| void | writeExternal(ObjectOutput out) |
Returns: 2 if string is an NCName; otherwise 1 if string is a Name; otherwise 0 if string is an NMTOKEN; otherwise -1.