Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api
Class PathRef

java.lang.Object
  extended by org.nuxeo.ecm.core.api.PathRef
All Implemented Interfaces:
Serializable, DocumentRef

public class PathRef
extends Object
implements DocumentRef

A PATH reference to a document.

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Field Summary
 String value
           
 
Fields inherited from interface org.nuxeo.ecm.core.api.DocumentRef
ID, PATH
 
Constructor Summary
PathRef(String path)
           
PathRef(String parentPath, String name)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 Object reference()
          Gets the reference value.
 String toString()
           
 int type()
          Gets the type of the reference.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public final String value
Constructor Detail

PathRef

public PathRef(String parentPath,
               String name)

PathRef

public PathRef(String path)
Method Detail

type

public int type()
Description copied from interface: DocumentRef
Gets the type of the reference.

Specified by:
type in interface DocumentRef
Returns:
the type of the reference

reference

public Object reference()
Description copied from interface: DocumentRef
Gets the reference value.

For an ID reference, this is the document UUID.

For an ID reference, this is the document path.

For an INSTANCE reference this is the document itself.

Specified by:
reference in interface DocumentRef
Returns:
the reference value

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.