FileDocCategorySizeDatePackage
PrefixedQName.javaAPI DocApache Axis 1.42291Sat Apr 22 18:57:28 BST 2006org.apache.axis.message

PrefixedQName

public class PrefixedQName extends Object implements Name

Fields Summary
private static final String
emptyString
comment/shared empty string
private String
prefix
private QName
qName
Constructors Summary
public PrefixedQName(String uri, String localName, String pre)

    
           
        qName = new QName(uri, localName);
        prefix = (pre == null)
                            ? emptyString
                            : pre.intern();
    
public PrefixedQName(QName qname)

        this.qName = qname;
        prefix = emptyString;
    
Methods Summary
public booleanequals(java.lang.Object obj)

        if (obj == this) {
            return true;
        }
        if (!(obj instanceof PrefixedQName)) {
            return false;
        }
        if (!qName.equals(((PrefixedQName)obj).qName)) {
            return false;
        }
        if (prefix == ((PrefixedQName) obj).prefix) {
            return true;
        }
        return false;
    
public java.lang.StringgetLocalName()

        return qName.getLocalPart();
    
public java.lang.StringgetPrefix()

        return prefix;
    
public java.lang.StringgetQualifiedName()

        StringBuffer buf = new StringBuffer(prefix);
        if(prefix != emptyString)
            buf.append(':");
        buf.append(qName.getLocalPart());
        return buf.toString();
    
public java.lang.StringgetURI()

        return qName.getNamespaceURI();
    
public inthashCode()

        return prefix.hashCode() + qName.hashCode();
    
public java.lang.StringtoString()

        return qName.toString();