FileDocCategorySizeDatePackage
QName.javaAPI DocJava SE 5 API1999Fri Aug 26 14:55:36 BST 2005com.sun.org.apache.xalan.internal.xsltc.compiler

QName

public final class QName extends Object
author
Jacek Ambroziak
author
Santiago Pericas-Geertsen
author
Morten Jorgensen

Fields Summary
private final String
_localname
private String
_prefix
private String
_namespace
private String
_stringRep
private int
_hashCode
Constructors Summary
public QName(String namespace, String prefix, String localname)

	_namespace = namespace;
	_prefix    = prefix;
	_localname = localname;

	_stringRep = 
	    (namespace != null && !namespace.equals(Constants.EMPTYSTRING)) ?
	    (namespace + ':" + localname) : localname;

	_hashCode  = _stringRep.hashCode() + 19; // cached for speed
    
Methods Summary
public voidclearNamespace()

	_namespace = Constants.EMPTYSTRING;
    
public java.lang.Stringdump()

	return new String("QName: " + _namespace + "(" + _prefix + "):" 
	    + _localname);
    
public booleanequals(java.lang.Object other)

	return (this == other);
    
public java.lang.StringgetLocalPart()

	return _localname;
    
public java.lang.StringgetNamespace()

	return _namespace;
    
public java.lang.StringgetPrefix()

	return _prefix;
    
public java.lang.StringgetStringRep()

	return _stringRep;
    
public inthashCode()

	return _hashCode;
    
public java.lang.StringtoString()

	return _stringRep;