gnu.xml
Class XName

java.lang.Object
  extended by gnu.mapping.Symbol
      extended by gnu.xml.XName
All Implemented Interfaces:
EnvironmentKey, java.io.Externalizable, java.io.Serializable, java.lang.Comparable

public class XName
extends Symbol
implements java.io.Externalizable

A QName with namespace nodes [and future optional type annotation].

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gnu.mapping.Symbol
FUNCTION, name, PLIST
 
Constructor Summary
XName()
           
XName(Symbol symbol, NamespaceBinding namespaceNodes)
           
 
Method Summary
 NamespaceBinding getNamespaceNodes()
          Namespace nodes associated with an element.
static boolean isName(java.lang.String value)
           
static boolean isName(java.lang.String value, boolean prohibitColon)
           
static boolean isNamePart(int ch)
           
static boolean isNameStart(int ch)
           
 void readExternal(java.io.ObjectInput in)
           
 void setNamespaceNodes(NamespaceBinding nodes)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class gnu.mapping.Symbol
compareTo, equals, equals, getKeyProperty, getKeySymbol, getLocalName, getLocalPart, getName, getNamespace, getNamespaceURI, getPrefix, hasEmptyNamespace, hashCode, make, make, makeUninterned, makeWithUnknownNamespace, matches, matches, parse, readResolve, setNamespace, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XName

public XName()

XName

public XName(Symbol symbol,
             NamespaceBinding namespaceNodes)
Method Detail

getNamespaceNodes

public final NamespaceBinding getNamespaceNodes()
Namespace nodes associated with an element. These are in inverse document/parse order.


setNamespaceNodes

public final void setNamespaceNodes(NamespaceBinding nodes)

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class Symbol
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class Symbol
Throws:
java.io.IOException
java.lang.ClassNotFoundException

isNameStart

public static boolean isNameStart(int ch)

isNamePart

public static boolean isNamePart(int ch)

isName

public static boolean isName(java.lang.String value)

isName

public static boolean isName(java.lang.String value,
                             boolean prohibitColon)