gnu.xml
Class XName
- Comparable, Externalizable, EnvironmentKey
public class XName
implements Externalizable
A QName with namespace nodes [and future optional type annotation].
compareTo , equals , equals , getKeyProperty , getKeySymbol , getLocalName , getLocalPart , getName , getNamespace , getNamespaceURI , getPrefix , hasEmptyNamespace , hashCode , make , make , makeUninterned , makeWithUnknownNamespace , matches , matches , parse , readExternal , readResolve , setNamespace , toString , writeExternal |
checkName
public static int checkName(String value)
Check if a string is a valid NMTOKEN, Name, or NCName.
- 2 if string is an NCName; otherwise 1 if string is a Name;
otherwise 0 if string is an NMTOKEN; otherwise -1.
getNamespaceNodes
public final NamespaceBinding getNamespaceNodes()
Namespace nodes associated with an element.
These are in inverse document/parse order.
isNCName
public static boolean isNCName(String value)
isName
public static boolean isName(String value)
isNamePart
public static boolean isNamePart(int ch)
isNameStart
public static boolean isNameStart(int ch)
isNmToken
public static boolean isNmToken(String value)
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- readExternal in interface Symbol
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- writeExternal in interface Symbol