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
value
public final String value
IdRef
public IdRef(String value)
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
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 Nuxeo SAS. All Rights Reserved.