gnu.xml
Class SName

java.lang.Object
  extended by javax.xml.namespace.QName
      extended by gnu.xml.SName
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
XName

public class SName
extends javax.xml.namespace.QName
implements java.io.Externalizable

Represents an "expanded QName" - a (namepaceURI, localPart)-pair. Also stores namespace prefix used in lexical form, but prefix is ignored for equals. If configured to use JAXP 1.3, then this class extends javax.xml.namespace.QName.

See Also:
Serialized Form

Constructor Summary
SName()
           
SName(java.lang.String namespaceURI, java.lang.String localPart, java.lang.String prefix)
           
SName(Symbol symbol, java.lang.String prefix)
           
 
Method Summary
 boolean equals(SName obj)
           
 Symbol getSymbol()
           
static SName make(java.lang.String namespaceURI, java.lang.String localPart, java.lang.String prefix)
           
 void readExternal(java.io.ObjectInput in)
           
 java.lang.Object readResolve()
           
 void setSymbol(Symbol qname)
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class javax.xml.namespace.QName
equals, getLocalPart, getNamespaceURI, getPrefix, hashCode, valueOf
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SName

public SName()

SName

public SName(Symbol symbol,
             java.lang.String prefix)

SName

public SName(java.lang.String namespaceURI,
             java.lang.String localPart,
             java.lang.String prefix)
Method Detail

make

public static SName make(java.lang.String namespaceURI,
                         java.lang.String localPart,
                         java.lang.String prefix)

getSymbol

public final Symbol getSymbol()

setSymbol

public final void setSymbol(Symbol qname)

equals

public final boolean equals(SName obj)

toString

public java.lang.String toString()
Overrides:
toString in class javax.xml.namespace.QName

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
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
Throws:
java.io.IOException
java.lang.ClassNotFoundException

readResolve

public java.lang.Object readResolve()
                             throws java.io.ObjectStreamException
Throws:
java.io.ObjectStreamException