Package org.nuxeo.ecm.core.api
Interface DocumentRef
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbsoluteDocumentRef
,IdRef
,InstanceRef
,PathRef
A reference to a core document.
The following two types of references are supported:
- Author:
- Bogdan Stefanescu
-
Field Summary
-
Method Summary
-
Field Details
-
ID
static final int ID- See Also:
-
PATH
static final int PATH- See Also:
-
INSTANCE
static final int INSTANCE- See Also:
-
-
Method Details
-
type
int type()Gets the type of the reference.- Returns:
- the type of the reference
-
reference
Object reference()Gets the reference value.For an ID reference, this is the document UUID.
For a PATH reference, this is the document path.
For an INSTANCE reference this is the document itself.
- Returns:
- the reference value
-