org.jboss.dna.jcr
Class CorrespondenceId

java.lang.Object
  extended by org.jboss.dna.jcr.CorrespondenceId

@Immutable
public class CorrespondenceId
extends Object

A correspondence identifier is defined to be the pair of the UUID of the nearest referenceable ancestor and the relative path from that referenceable ancestor to the node of interest. If any node is a referenceable node, then the correspondence identifier is just the UUID of the node. Per Section 4.10.2 of JSR-170, version 1.0.1.

Note that per Section 6.2.8, two non-referenceable nodes are the same if they have the same correspondence identifier.


Constructor Summary
CorrespondenceId(String referenceableId)
           
CorrespondenceId(String referenceableId, Path relativePath)
           
 
Method Summary
 boolean equals(Object obj)
          
 String getReferenceableId()
           
 Path getRelativePath()
           
 int hashCode()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorrespondenceId

public CorrespondenceId(String referenceableId)

CorrespondenceId

public CorrespondenceId(String referenceableId,
                        Path relativePath)
Method Detail

getReferenceableId

public String getReferenceableId()
Returns:
referenceableId

getRelativePath

public Path getRelativePath()
Returns:
relativePath

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)


Copyright © 2008-2009 JBoss, a division of Red Hat. All Rights Reserved.