org.nuxeo.ecm.core.api
Class PathRef
java.lang.Object
org.nuxeo.ecm.core.api.PathRef
- All Implemented Interfaces:
- java.io.Serializable, DocumentRef
public class PathRef
- extends java.lang.Object
- implements DocumentRef
A PATH reference to a document.
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
Field Summary |
java.lang.String |
value
|
Constructor Summary |
PathRef(java.lang.String path)
|
PathRef(java.lang.String parentPath,
java.lang.String name)
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
java.lang.Object |
reference()
Gets the reference value. |
java.lang.String |
toString()
|
int |
type()
Gets the type of the reference. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
value
public final java.lang.String value
PathRef
public PathRef(java.lang.String parentPath,
java.lang.String name)
PathRef
public PathRef(java.lang.String path)
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 java.lang.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(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010 Nuxeo SAS. All Rights Reserved.