Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api
Interface DocumentRef

All Superinterfaces:
Serializable
All Known Implementing Classes:
IdRef, PathRef

public interface DocumentRef
extends Serializable

A reference to a core document.

The following two types of references are supported:

Author:
Bogdan Stefanescu

Field Summary
static int ID
           
static int PATH
           
 
Method Summary
 Object reference()
          Gets the reference value.
 int type()
          Gets the type of the reference.
 

Field Detail

ID

static final int ID
See Also:
Constant Field Values

PATH

static final int PATH
See Also:
Constant Field Values
Method Detail

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 an ID reference, this is the document path.

For an INSTANCE reference this is the document itself.

Returns:
the reference value

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.