org.apache.jackrabbit.name
Class QName

java.lang.Object
  extended by org.apache.jackrabbit.name.QName
All Implemented Interfaces:
Serializable, Cloneable, Comparable

Deprecated. Use the Name and NameFactory interfaces from the org.apache.jackrabbit.spi package of the jackrabbit-spi component. A default implementation is available as the org.apache.jackrabbit.spi.commons.name.NameFactoryImpl class in the jackrabbit-spi-commons component.

public final class QName
extends Object
implements Cloneable, Comparable, Serializable

Qualified name. A qualified name is a combination of a namespace URI and a local part. Instances of this class are used to internally represent the names of JCR content items and other objects within a content repository.

A qualified name is immutable once created, although the prefixed JCR name representation of the qualified name can change depending on the namespace mappings in effect.

This class also contains a number of common namespace and qualified name constants for the namespaces and names specified by the JCR specification.

String representations

The prefixed JCR name format of a qualified name is specified by section 4.6 of the the JCR 1.0 specification (JSR 170) as follows:

 name                ::= simplename | prefixedname
 simplename          ::= onecharsimplename |
                         twocharsimplename |
                         threeormorecharname
 prefixedname        ::= prefix ':' localname
 localname           ::= onecharlocalname |
                         twocharlocalname |
                         threeormorecharname
 onecharsimplename   ::= (* Any Unicode character except:
                            '.', '/', ':', '[', ']', '*',
                            ''', '"', '|' or any whitespace
                            character *)
 twocharsimplename   ::= '.' onecharsimplename |
                         onecharsimplename '.' |
                         onecharsimplename onecharsimplename
 onecharlocalname    ::= nonspace
 twocharlocalname    ::= nonspace nonspace
 threeormorecharname ::= nonspace string nonspace
 prefix              ::= (* Any valid XML Name *)
 string              ::= char | string char
 char                ::= nonspace | ' '
 nonspace            ::= (* Any Unicode character except:
                            '/', ':', '[', ']', '*',
                            ''', '"', '|' or any whitespace
                            character *)
 

In addition to the prefixed JCR name format, a qualified name can also be represented using the format "{namespaceURI}localPart".

See Also:
Serialized Form

Field Summary
static QName[] EMPTY_ARRAY
          Deprecated.  
static QName JCR_AUTOCREATED
          Deprecated. jcr:autoCreated
static QName JCR_BASEVERSION
          Deprecated. jcr:baseVersion
static QName JCR_CHILDNODEDEFINITION
          Deprecated. jcr:childNodeDefinition
static QName JCR_CHILDVERSIONHISTORY
          Deprecated. jcr:childVersionHistory
static QName JCR_CONTENT
          Deprecated. jcr:content
static QName JCR_CREATED
          Deprecated. jcr:created
static QName JCR_DATA
          Deprecated. jcr:data
static QName JCR_DEFAULTPRIMARYTYPE
          Deprecated. jcr:defaultPrimaryType
static QName JCR_DEFAULTVALUES
          Deprecated. jcr:defaultValues
static QName JCR_ENCODING
          Deprecated. jcr:encoding
static QName JCR_FROZENMIXINTYPES
          Deprecated. jcr:frozenMixinTypes
static QName JCR_FROZENNODE
          Deprecated. jcr:frozenNode
static QName JCR_FROZENPRIMARYTYPE
          Deprecated. jcr:frozenPrimaryType
static QName JCR_FROZENUUID
          Deprecated. jcr:frozenUuid
static QName JCR_HASORDERABLECHILDNODES
          Deprecated. jcr:hasOrderableChildNodes
static QName JCR_ISCHECKEDOUT
          Deprecated. jcr:isCheckedOut
static QName JCR_ISMIXIN
          Deprecated. jcr:isMixin
static QName JCR_LANGUAGE
          Deprecated. jcr:language
static QName JCR_LASTMODIFIED
          Deprecated. jcr:lastModified
static QName JCR_LOCKISDEEP
          Deprecated. jcr:lockIsDeep
static QName JCR_LOCKOWNER
          Deprecated. jcr:lockOwner
static QName JCR_MANDATORY
          Deprecated. jcr:mandatory
static QName JCR_MERGEFAILED
          Deprecated. jcr:mergeFailed
static QName JCR_MIMETYPE
          Deprecated. jcr:mimeType
static QName JCR_MIXINTYPES
          Deprecated. jcr:mixinTypes
static QName JCR_MULTIPLE
          Deprecated. jcr:multiple
static QName JCR_NAME
          Deprecated. jcr:name
static QName JCR_NODETYPENAME
          Deprecated. jcr:nodeTypeName
static QName JCR_NODETYPES
          Deprecated. jcr:nodeTypes
static QName JCR_ONPARENTVERSION
          Deprecated. jcr:onParentVersion
static QName JCR_PATH
          Deprecated. jcr:path
static QName JCR_PREDECESSORS
          Deprecated. jcr:predecessors
static QName JCR_PRIMARYITEMNAME
          Deprecated. jcr:primaryItemName
static QName JCR_PRIMARYTYPE
          Deprecated. jcr:primaryType
static QName JCR_PROPERTYDEFINITION
          Deprecated. jcr:propertyDefinition
static QName JCR_PROTECTED
          Deprecated. jcr:protected
static QName JCR_REQUIREDPRIMARYTYPES
          Deprecated. jcr:requiredPrimaryTypes
static QName JCR_REQUIREDTYPE
          Deprecated. jcr:requiredType
static QName JCR_ROOT
          Deprecated. jcr:root (dummy name for root node used in XML serialization)
static QName JCR_ROOTVERSION
          Deprecated. jcr:rootVersion
static QName JCR_SAMENAMESIBLINGS
          Deprecated. jcr:sameNameSiblings
static QName JCR_SCORE
          Deprecated. jcr:score
static QName JCR_STATEMENT
          Deprecated. jcr:statement
static QName JCR_SUCCESSORS
          Deprecated. jcr:successors
static QName JCR_SUPERTYPES
          Deprecated. jcr:supertypes
static QName JCR_SYSTEM
          Deprecated. jcr:system
static QName JCR_UUID
          Deprecated. jcr:uuid
static QName JCR_VALUECONSTRAINTS
          Deprecated. jcr:valueConstraints
static QName JCR_VERSIONABLEUUID
          Deprecated. jcr:versionableUuid
static QName JCR_VERSIONHISTORY
          Deprecated. jcr:versionHistory
static QName JCR_VERSIONLABELS
          Deprecated. jcr:versionLabels
static QName JCR_VERSIONSTORAGE
          Deprecated. jcr:versionStorage
static QName JCR_XMLCHARACTERS
          Deprecated. jcr:xmlcharacters
static QName JCR_XMLTEXT
          Deprecated. jcr:xmltext
static QName MIX_LOCKABLE
          Deprecated. mix:referenceable
static QName MIX_REFERENCEABLE
          Deprecated. mix:referenceable
static QName MIX_VERSIONABLE
          Deprecated. mix:versionable
static String NS_DEFAULT_URI
          Deprecated.  
static String NS_EMPTY_PREFIX
          Deprecated.  
static String NS_JCR_PREFIX
          Deprecated.  
static String NS_JCR_URI
          Deprecated.  
static String NS_MIX_PREFIX
          Deprecated.  
static String NS_MIX_URI
          Deprecated.  
static String NS_NT_PREFIX
          Deprecated.  
static String NS_NT_URI
          Deprecated.  
static String NS_REP_PREFIX
          Deprecated.  
static String NS_REP_URI
          Deprecated.  
static String NS_SV_PREFIX
          Deprecated.  
static String NS_SV_URI
          Deprecated.  
static String NS_XML_PREFIX
          Deprecated.  
static String NS_XML_URI
          Deprecated.  
static String NS_XMLNS_PREFIX
          Deprecated.  
static String NS_XMLNS_URI
          Deprecated.  
static QName NT_BASE
          Deprecated. nt:base
static QName NT_CHILDNODEDEFINITION
          Deprecated. nt:childNodeDefinition
static QName NT_FILE
          Deprecated. nt:file
static QName NT_FOLDER
          Deprecated. nt:folder
static QName NT_FROZENNODE
          Deprecated. nt:frozenNode
static QName NT_HIERARCHYNODE
          Deprecated. nt:hierarchyNode
static QName NT_NODETYPE
          Deprecated. nt:nodeType
static QName NT_PROPERTYDEFINITION
          Deprecated. nt:propertyDefinition
static QName NT_QUERY
          Deprecated. nt:query
static QName NT_RESOURCE
          Deprecated. nt:resource
static QName NT_UNSTRUCTURED
          Deprecated. nt:unstructured
static QName NT_VERSION
          Deprecated. nt:version
static QName NT_VERSIONEDCHILD
          Deprecated. nt:versionedChild
static QName NT_VERSIONHISTORY
          Deprecated. nt:versionHistory
static QName NT_VERSIONLABELS
          Deprecated. nt:versionLabels
static QName REP_NODETYPES
          Deprecated. rep:versionStorage
static QName REP_ROOT
          Deprecated. rep:root
static QName REP_SYSTEM
          Deprecated. rep:system
static QName REP_VERSIONSTORAGE
          Deprecated. rep:versionStorage
static QName ROOT
          Deprecated. Extra QName for the root node
static QName SV_NAME
          Deprecated. sv:name
static QName SV_NODE
          Deprecated. sv:node
static QName SV_PROPERTY
          Deprecated. sv:property
static QName SV_TYPE
          Deprecated. sv:type
static QName SV_VALUE
          Deprecated. sv:value
 
Constructor Summary
QName(String namespaceURI, String localName)
          Deprecated. Creates a new qualified name with the given namespace URI and local part.
 
Method Summary
static void checkFormat(String jcrName)
          Deprecated. Use NameFormat.checkFormat(String) instead.
 Object clone()
          Deprecated. Creates a clone of this qualified name.
 int compareTo(Object o)
          Deprecated. Compares two qualified names.
 boolean equals(Object obj)
          Deprecated. Compares two qualified names for equality.
static QName fromJCRName(String rawName, NamespaceResolver resolver)
          Deprecated. Use NameFormat.parse(String, NamespaceResolver) instead.
 String getLocalName()
          Deprecated. Returns the local part of the qualified name.
 String getNamespaceURI()
          Deprecated. Returns the namespace URI of the qualified name.
 int hashCode()
          Deprecated. Returns the hash code of this qualified name.
 String toJCRName(NamespaceResolver resolver)
          Deprecated. Use NameFormat.format(QName, NamespaceResolver) instead.
 void toJCRName(NamespaceResolver resolver, StringBuffer buf)
          Deprecated. Use NameFormat.format(QName, NamespaceResolver, StringBuffer) instead.
 String toString()
          Deprecated. Returns the string representation of this QName in the following format:

{namespaceURI}localName

static QName valueOf(String s)
          Deprecated. Returns a QName holding the value of the specified string.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NS_EMPTY_PREFIX

public static final String NS_EMPTY_PREFIX
Deprecated. 
See Also:
Constant Field Values

NS_DEFAULT_URI

public static final String NS_DEFAULT_URI
Deprecated. 
See Also:
Constant Field Values

NS_REP_PREFIX

public static final String NS_REP_PREFIX
Deprecated. 
See Also:
Constant Field Values

NS_REP_URI

public static final String NS_REP_URI
Deprecated. 
See Also:
Constant Field Values

NS_JCR_PREFIX

public static final String NS_JCR_PREFIX
Deprecated. 
See Also:
Constant Field Values

NS_JCR_URI

public static final String NS_JCR_URI
Deprecated. 
See Also:
Constant Field Values

NS_NT_PREFIX

public static final String NS_NT_PREFIX
Deprecated. 
See Also:
Constant Field Values

NS_NT_URI

public static final String NS_NT_URI
Deprecated. 
See Also:
Constant Field Values

NS_MIX_PREFIX

public static final String NS_MIX_PREFIX
Deprecated. 
See Also:
Constant Field Values

NS_MIX_URI

public static final String NS_MIX_URI
Deprecated. 
See Also:
Constant Field Values

NS_SV_PREFIX

public static final String NS_SV_PREFIX
Deprecated. 
See Also:
Constant Field Values

NS_SV_URI

public static final String NS_SV_URI
Deprecated. 
See Also:
Constant Field Values

NS_XML_PREFIX

public static final String NS_XML_PREFIX
Deprecated. 
See Also:
Constant Field Values

NS_XML_URI

public static final String NS_XML_URI
Deprecated. 
See Also:
Constant Field Values

NS_XMLNS_PREFIX

public static final String NS_XMLNS_PREFIX
Deprecated. 
See Also:
Constant Field Values

NS_XMLNS_URI

public static final String NS_XMLNS_URI
Deprecated. 
See Also:
Constant Field Values

ROOT

public static final QName ROOT
Deprecated. 
Extra QName for the root node


JCR_SYSTEM

public static final QName JCR_SYSTEM
Deprecated. 
jcr:system


JCR_NODETYPES

public static final QName JCR_NODETYPES
Deprecated. 
jcr:nodeTypes


JCR_UUID

public static final QName JCR_UUID
Deprecated. 
jcr:uuid


JCR_PRIMARYTYPE

public static final QName JCR_PRIMARYTYPE
Deprecated. 
jcr:primaryType


JCR_MIXINTYPES

public static final QName JCR_MIXINTYPES
Deprecated. 
jcr:mixinTypes


JCR_CREATED

public static final QName JCR_CREATED
Deprecated. 
jcr:created


JCR_LASTMODIFIED

public static final QName JCR_LASTMODIFIED
Deprecated. 
jcr:lastModified


JCR_ENCODING

public static final QName JCR_ENCODING
Deprecated. 
jcr:encoding


JCR_MIMETYPE

public static final QName JCR_MIMETYPE
Deprecated. 
jcr:mimeType


JCR_DATA

public static final QName JCR_DATA
Deprecated. 
jcr:data


JCR_CONTENT

public static final QName JCR_CONTENT
Deprecated. 
jcr:content


JCR_ROOT

public static final QName JCR_ROOT
Deprecated. 
jcr:root (dummy name for root node used in XML serialization)


JCR_XMLTEXT

public static final QName JCR_XMLTEXT
Deprecated. 
jcr:xmltext


JCR_XMLCHARACTERS

public static final QName JCR_XMLCHARACTERS
Deprecated. 
jcr:xmlcharacters


JCR_SCORE

public static final QName JCR_SCORE
Deprecated. 
jcr:score


JCR_PATH

public static final QName JCR_PATH
Deprecated. 
jcr:path


JCR_STATEMENT

public static final QName JCR_STATEMENT
Deprecated. 
jcr:statement


JCR_LANGUAGE

public static final QName JCR_LANGUAGE
Deprecated. 
jcr:language


JCR_LOCKOWNER

public static final QName JCR_LOCKOWNER
Deprecated. 
jcr:lockOwner


JCR_LOCKISDEEP

public static final QName JCR_LOCKISDEEP
Deprecated. 
jcr:lockIsDeep


JCR_VERSIONSTORAGE

public static final QName JCR_VERSIONSTORAGE
Deprecated. 
jcr:versionStorage


JCR_MERGEFAILED

public static final QName JCR_MERGEFAILED
Deprecated. 
jcr:mergeFailed


JCR_FROZENNODE

public static final QName JCR_FROZENNODE
Deprecated. 
jcr:frozenNode


JCR_FROZENUUID

public static final QName JCR_FROZENUUID
Deprecated. 
jcr:frozenUuid


JCR_FROZENPRIMARYTYPE

public static final QName JCR_FROZENPRIMARYTYPE
Deprecated. 
jcr:frozenPrimaryType


JCR_FROZENMIXINTYPES

public static final QName JCR_FROZENMIXINTYPES
Deprecated. 
jcr:frozenMixinTypes


JCR_PREDECESSORS

public static final QName JCR_PREDECESSORS
Deprecated. 
jcr:predecessors


JCR_VERSIONLABELS

public static final QName JCR_VERSIONLABELS
Deprecated. 
jcr:versionLabels


JCR_SUCCESSORS

public static final QName JCR_SUCCESSORS
Deprecated. 
jcr:successors


JCR_ISCHECKEDOUT

public static final QName JCR_ISCHECKEDOUT
Deprecated. 
jcr:isCheckedOut


JCR_VERSIONHISTORY

public static final QName JCR_VERSIONHISTORY
Deprecated. 
jcr:versionHistory


JCR_BASEVERSION

public static final QName JCR_BASEVERSION
Deprecated. 
jcr:baseVersion


JCR_CHILDVERSIONHISTORY

public static final QName JCR_CHILDVERSIONHISTORY
Deprecated. 
jcr:childVersionHistory


JCR_ROOTVERSION

public static final QName JCR_ROOTVERSION
Deprecated. 
jcr:rootVersion


JCR_VERSIONABLEUUID

public static final QName JCR_VERSIONABLEUUID
Deprecated. 
jcr:versionableUuid


JCR_NODETYPENAME

public static final QName JCR_NODETYPENAME
Deprecated. 
jcr:nodeTypeName


JCR_HASORDERABLECHILDNODES

public static final QName JCR_HASORDERABLECHILDNODES
Deprecated. 
jcr:hasOrderableChildNodes


JCR_ISMIXIN

public static final QName JCR_ISMIXIN
Deprecated. 
jcr:isMixin


JCR_SUPERTYPES

public static final QName JCR_SUPERTYPES
Deprecated. 
jcr:supertypes


JCR_PROPERTYDEFINITION

public static final QName JCR_PROPERTYDEFINITION
Deprecated. 
jcr:propertyDefinition


JCR_NAME

public static final QName JCR_NAME
Deprecated. 
jcr:name


JCR_MANDATORY

public static final QName JCR_MANDATORY
Deprecated. 
jcr:mandatory


JCR_PROTECTED

public static final QName JCR_PROTECTED
Deprecated. 
jcr:protected


JCR_REQUIREDTYPE

public static final QName JCR_REQUIREDTYPE
Deprecated. 
jcr:requiredType


JCR_ONPARENTVERSION

public static final QName JCR_ONPARENTVERSION
Deprecated. 
jcr:onParentVersion


JCR_PRIMARYITEMNAME

public static final QName JCR_PRIMARYITEMNAME
Deprecated. 
jcr:primaryItemName


JCR_MULTIPLE

public static final QName JCR_MULTIPLE
Deprecated. 
jcr:multiple


JCR_VALUECONSTRAINTS

public static final QName JCR_VALUECONSTRAINTS
Deprecated. 
jcr:valueConstraints


JCR_DEFAULTVALUES

public static final QName JCR_DEFAULTVALUES
Deprecated. 
jcr:defaultValues


JCR_AUTOCREATED

public static final QName JCR_AUTOCREATED
Deprecated. 
jcr:autoCreated


JCR_CHILDNODEDEFINITION

public static final QName JCR_CHILDNODEDEFINITION
Deprecated. 
jcr:childNodeDefinition


JCR_SAMENAMESIBLINGS

public static final QName JCR_SAMENAMESIBLINGS
Deprecated. 
jcr:sameNameSiblings


JCR_DEFAULTPRIMARYTYPE

public static final QName JCR_DEFAULTPRIMARYTYPE
Deprecated. 
jcr:defaultPrimaryType


JCR_REQUIREDPRIMARYTYPES

public static final QName JCR_REQUIREDPRIMARYTYPES
Deprecated. 
jcr:requiredPrimaryTypes


REP_ROOT

public static final QName REP_ROOT
Deprecated. 
rep:root


REP_SYSTEM

public static final QName REP_SYSTEM
Deprecated. 
rep:system


REP_VERSIONSTORAGE

public static final QName REP_VERSIONSTORAGE
Deprecated. 
rep:versionStorage


REP_NODETYPES

public static final QName REP_NODETYPES
Deprecated. 
rep:versionStorage


NT_UNSTRUCTURED

public static final QName NT_UNSTRUCTURED
Deprecated. 
nt:unstructured


NT_BASE

public static final QName NT_BASE
Deprecated. 
nt:base


NT_HIERARCHYNODE

public static final QName NT_HIERARCHYNODE
Deprecated. 
nt:hierarchyNode


NT_RESOURCE

public static final QName NT_RESOURCE
Deprecated. 
nt:resource


NT_FILE

public static final QName NT_FILE
Deprecated. 
nt:file


NT_FOLDER

public static final QName NT_FOLDER
Deprecated. 
nt:folder


NT_QUERY

public static final QName NT_QUERY
Deprecated. 
nt:query


MIX_REFERENCEABLE

public static final QName MIX_REFERENCEABLE
Deprecated. 
mix:referenceable


MIX_LOCKABLE

public static final QName MIX_LOCKABLE
Deprecated. 
mix:referenceable


MIX_VERSIONABLE

public static final QName MIX_VERSIONABLE
Deprecated. 
mix:versionable


NT_VERSIONHISTORY

public static final QName NT_VERSIONHISTORY
Deprecated. 
nt:versionHistory


NT_VERSION

public static final QName NT_VERSION
Deprecated. 
nt:version


NT_VERSIONLABELS

public static final QName NT_VERSIONLABELS
Deprecated. 
nt:versionLabels


NT_VERSIONEDCHILD

public static final QName NT_VERSIONEDCHILD
Deprecated. 
nt:versionedChild


NT_FROZENNODE

public static final QName NT_FROZENNODE
Deprecated. 
nt:frozenNode


NT_NODETYPE

public static final QName NT_NODETYPE
Deprecated. 
nt:nodeType


NT_PROPERTYDEFINITION

public static final QName NT_PROPERTYDEFINITION
Deprecated. 
nt:propertyDefinition


NT_CHILDNODEDEFINITION

public static final QName NT_CHILDNODEDEFINITION
Deprecated. 
nt:childNodeDefinition


SV_NODE

public static final QName SV_NODE
Deprecated. 
sv:node


SV_PROPERTY

public static final QName SV_PROPERTY
Deprecated. 
sv:property


SV_VALUE

public static final QName SV_VALUE
Deprecated. 
sv:value


SV_TYPE

public static final QName SV_TYPE
Deprecated. 
sv:type


SV_NAME

public static final QName SV_NAME
Deprecated. 
sv:name


EMPTY_ARRAY

public static final QName[] EMPTY_ARRAY
Deprecated. 
Constructor Detail

QName

public QName(String namespaceURI,
             String localName)
Deprecated. 
Creates a new qualified name with the given namespace URI and local part.

Note that the format of the local part is not validated. The format can be checked by calling NameFormat.checkFormat(String).

Parameters:
namespaceURI - namespace uri
localName - local part
Throws:
IllegalArgumentException - if localName is invalid.
Method Detail

fromJCRName

public static QName fromJCRName(String rawName,
                                NamespaceResolver resolver)
                         throws IllegalNameException,
                                UnknownPrefixException
Deprecated. Use NameFormat.parse(String, NamespaceResolver) instead.

Parses the given prefixed JCR name into a qualified name using the given namespace resolver.

Parameters:
rawName - prefixed JCR name
resolver - namespace resolver
Returns:
qualified name
Throws:
IllegalNameException - if the given name is not a valid JCR name
UnknownPrefixException - if the JCR name prefix does not resolve

valueOf

public static QName valueOf(String s)
                     throws IllegalArgumentException
Deprecated. 
Returns a QName holding the value of the specified string. The string must be in the format returned by the QName.toString() method, i.e.

{namespaceURI}localName

Parameters:
s - a String containing the QName representation to be parsed.
Returns:
the QName represented by the argument
Throws:
IllegalArgumentException - if the specified string can not be parsed as a QName.
See Also:
toString()

checkFormat

public static void checkFormat(String jcrName)
                        throws IllegalNameException
Deprecated. Use NameFormat.checkFormat(String) instead.

Checks if jcrName is a valid JCR-style name.

Parameters:
jcrName - the name to be checked
Throws:
IllegalNameException - If jcrName is not a valid JCR-style name.

getLocalName

public String getLocalName()
Deprecated. 
Returns the local part of the qualified name.

Returns:
local name

getNamespaceURI

public String getNamespaceURI()
Deprecated. 
Returns the namespace URI of the qualified name.

Returns:
namespace URI

toJCRName

public String toJCRName(NamespaceResolver resolver)
                 throws NoPrefixDeclaredException
Deprecated. Use NameFormat.format(QName, NamespaceResolver) instead.

Returns the qualified name in the prefixed JCR name format. The namespace URI is mapped to a prefix using the given namespace resolver.

Parameters:
resolver - namespace resolver
Returns:
prefixed name
Throws:
NoPrefixDeclaredException - if the namespace can not be resolved

toJCRName

public void toJCRName(NamespaceResolver resolver,
                      StringBuffer buf)
               throws NoPrefixDeclaredException
Deprecated. Use NameFormat.format(QName, NamespaceResolver, StringBuffer) instead.

Appends the qualified name in the prefixed JCR name format to the given string buffer. The namespace URI is mapped to a prefix using the given namespace resolver.

Parameters:
resolver - namespace resolver
buf - string buffer where the prefixed JCR name should be appended to
Throws:
NoPrefixDeclaredException - if the namespace can not be resolved
See Also:
toJCRName(NamespaceResolver)

toString

public String toString()
Deprecated. 
Returns the string representation of this QName in the following format:

{namespaceURI}localName

Overrides:
toString in class Object
Returns:
the string representation of this QName.
See Also:
valueOf(String), Object.toString()

equals

public boolean equals(Object obj)
Deprecated. 
Compares two qualified names for equality. Returns true if the given object is a qualified name and has the same namespace URI and local part as this qualified name.

Overrides:
equals in class Object
Parameters:
obj - the object to compare this qualified name with
Returns:
true if the object is equal to this qualified name, false otherwise
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Deprecated. 
Returns the hash code of this qualified name. The hash code is computed from the namespace URI and local part of the qualified name and memorized for better performance.

Overrides:
hashCode in class Object
Returns:
hash code
See Also:
Object.hashCode()

clone

public Object clone()
             throws CloneNotSupportedException
Deprecated. 
Creates a clone of this qualified name. Overriden in order to make clone() public.

Overrides:
clone in class Object
Returns:
a clone of this instance
Throws:
CloneNotSupportedException - never thrown
See Also:
Object.clone()

compareTo

public int compareTo(Object o)
Deprecated. 
Compares two qualified names.

Specified by:
compareTo in interface Comparable
Parameters:
o - the object to compare this qualified name with
Returns:
comparison result
Throws:
ClassCastException - if the given object is not a qualified name
See Also:
Comparable.compareTo(Object)


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.