Package org.apache.jena.ext.xerces.xni
Class QName
java.lang.Object
org.apache.jena.ext.xerces.xni.QName
- All Implemented Interfaces:
Cloneable
A structure that holds the components of an XML Namespaces qualified
name.
To be used correctly, the strings must be identical references for
equal strings. Within the parser, these values are considered symbols
and should always be retrieved from the SymbolTable
.
- Version:
- $Id: QName.java 447247 2006-09-18 05:23:52Z mrglavas $
- Author:
- Andy Clark, IBM
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears the values of the qname components.clone()
Returns a clone of this object.boolean
Returns true if the two objects are equal.int
hashCode()
Returns the hashcode for this object.void
Convenience method to set the values of the qname components.void
Convenience method to set the values of the qname components.toString()
Returns a string representation of this object.
-
Field Details
-
prefix
The qname prefix. For example, the prefix for the qname "a:foo" is "a". -
localpart
The qname localpart. For example, the localpart for the qname "a:foo" is "foo". -
rawname
The qname rawname. For example, the rawname for the qname "a:foo" is "a:foo". -
uri
The URI to which the qname prefix is bound. This binding must be performed by a XML Namespaces aware processor.
-
-
Constructor Details
-
QName
public QName()Default constructor. -
QName
Constructs a QName with the specified values. -
QName
Constructs a copy of the specified QName.
-
-
Method Details
-
setValues
Convenience method to set the values of the qname components.- Parameters:
qname
- The qualified name to be copied.
-
setValues
Convenience method to set the values of the qname components.- Parameters:
prefix
- The qname prefix. (e.g. "a")localpart
- The qname localpart. (e.g. "foo")rawname
- The qname rawname. (e.g. "a:foo")uri
- The URI binding. (e.g. "http://foo.com/mybinding")
-
clear
public void clear()Clears the values of the qname components. -
clone
Returns a clone of this object. -
hashCode
public int hashCode()Returns the hashcode for this object. -
equals
Returns true if the two objects are equal. -
toString
Returns a string representation of this object.
-