org.apache.fop.util

Class QName

Implemented Interfaces:
Serializable

public class QName
extends java.lang.Object
implements Serializable

Represents a qualified name of an XML element or an XML attribute.

Note: This class allows to carry a namespace prefix but it is not used in the equals() and hashCode() methods.

Constructor Summary

QName(String namespaceURI, String qName)
Main constructor.
QName(String namespaceURI, String prefix, String localName)
Main constructor.

Method Summary

boolean
equals(Object obj)
String
getLocalName()
String
getNamespaceURI()
String
getPrefix()
String
getQName()
int
hashCode()
String
toString()

Constructor Details

QName

public QName(String namespaceURI,
             String qName)
Main constructor.
Parameters:
namespaceURI - the namespace URI
qName - the qualified name

QName

public QName(String namespaceURI,
             String prefix,
             String localName)
Main constructor.
Parameters:
namespaceURI - the namespace URI
prefix - the namespace prefix, may be null
localName - the local name

Method Details

equals

public boolean equals(Object obj)

getLocalName

public String getLocalName()
Returns:
the local name

getNamespaceURI

public String getNamespaceURI()
Returns:
the namespace URI

getPrefix

public String getPrefix()
Returns:
the namespace prefix

getQName

public String getQName()
Returns:
the fully qualified name

hashCode

public int hashCode()

toString

public String toString()

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.