gnu.xml

Class XName

public class XName extends Symbol implements Externalizable

A QName with namespace nodes [and future optional type annotation].
Constructor Summary
XName()
XName(Symbol symbol, NamespaceBinding namespaceNodes)
Method Summary
static intcheckName(String value)
Check if a string is a valid NMTOKEN, Name, or NCName.
NamespaceBindinggetNamespaceNodes()
Namespace nodes associated with an element.
static booleanisName(String value)
static booleanisNamePart(int ch)
static booleanisNameStart(int ch)
static booleanisNCName(String value)
static booleanisNmToken(String value)
voidreadExternal(ObjectInput in)
voidsetNamespaceNodes(NamespaceBinding nodes)
voidwriteExternal(ObjectOutput out)

Constructor Detail

XName

public XName()

XName

public XName(Symbol symbol, NamespaceBinding namespaceNodes)

Method Detail

checkName

public static int checkName(String value)
Check if a string is a valid NMTOKEN, Name, or NCName.

Returns: 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.

isName

public static boolean isName(String value)

isNamePart

public static boolean isNamePart(int ch)

isNameStart

public static boolean isNameStart(int ch)

isNCName

public static boolean isNCName(String value)

isNmToken

public static boolean isNmToken(String value)

readExternal

public void readExternal(ObjectInput in)

setNamespaceNodes

public final void setNamespaceNodes(NamespaceBinding nodes)

writeExternal

public void writeExternal(ObjectOutput out)