Package org.nuxeo.ecm.core.api
Class IdRef
- java.lang.Object
-
- org.nuxeo.ecm.core.api.IdRef
-
- All Implemented Interfaces:
Serializable
,DocumentRef
public class IdRef extends Object implements DocumentRef
An ID reference to a document.- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
Object
reference()
Gets the reference value.String
toString()
int
type()
Gets the type of the reference.
-
-
-
Field Detail
-
value
public final String value
-
-
Constructor Detail
-
IdRef
public IdRef(String value)
-
-
Method Detail
-
type
public int type()
Description copied from interface:DocumentRef
Gets the type of the reference.- Specified by:
type
in interfaceDocumentRef
- 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 a PATH reference, this is the document path.
For an INSTANCE reference this is the document itself.
- Specified by:
reference
in interfaceDocumentRef
- Returns:
- the reference value
-
-