Interface DocumentRef

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

public interface DocumentRef extends Serializable
A reference to a core document.

The following two types of references are supported:

  • ID references. Refers to the core document by its UUID. See IdRef.
  • PATH references. Refers to the core document by its path. See PathRef.
Author:
Bogdan Stefanescu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the reference value.
    int
    Gets the type of the reference.
  • Field Details

  • 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