org.jboss.dna.jcr
Class CorrespondenceId
java.lang.Object
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.
CorrespondenceId
public CorrespondenceId(String referenceableId)
CorrespondenceId
public CorrespondenceId(String referenceableId,
Path relativePath)
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.