Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.api
Interface DocumentRef

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
IdRef, PathRef

public interface DocumentRef
extends java.io.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
 java.lang.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

java.lang.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 Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.