Ejemplo n.º 1
0
 /** @return the Node represented as a readable string. */
 @Override
 public String toString() {
   return new StringBuilder("NodeRef")
       .append('[')
       .append(path())
       .append(" -> ")
       .append(node.getObjectId())
       .append(']')
       .toString();
 }
Ejemplo n.º 2
0
 @Override
 public ObjectId getObjectId() {
   return node.getObjectId();
 }
Ejemplo n.º 3
0
 /** @deprecated use {@link #getObjectId()} instead */
 @Deprecated
 public ObjectId objectId() {
   return node.getObjectId();
 }
Ejemplo n.º 4
0
 /**
  * Hash code is based on {@link #getParentPath() parent path}, {@link #getNode() node} name and
  * id, and {@link #getMetadataId()}
  */
 @Override
 public int hashCode() {
   return 17 ^ parentPath.hashCode() * node.getObjectId().hashCode() * getMetadataId().hashCode();
 }
Ejemplo n.º 5
0
 /** The id of the object this edge points to */
 public ObjectId objectId() {
   return node.getObjectId();
 }