Package org.nuxeo.ecm.core.model
Enum DocumentModelResolver.MODE
- java.lang.Object
-
- java.lang.Enum<DocumentModelResolver.MODE>
-
- org.nuxeo.ecm.core.model.DocumentModelResolver.MODE
-
- All Implemented Interfaces:
Serializable
,Comparable<DocumentModelResolver.MODE>
- Enclosing class:
- DocumentModelResolver
public static enum DocumentModelResolver.MODE extends Enum<DocumentModelResolver.MODE>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ID_ONLY_REF
Reference is an id.PATH_ONLY_REF
Reference is a path.REPO_AND_ID_REF
Reference is an id prefixed with a repository.REPO_AND_PATH_REF
Reference is a path prefixed with a repository.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentModelResolver.MODE
valueOf(String name)
Returns the enum constant of this type with the specified name.static DocumentModelResolver.MODE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REPO_AND_PATH_REF
public static final DocumentModelResolver.MODE REPO_AND_PATH_REF
Reference is a path prefixed with a repository.
-
REPO_AND_ID_REF
public static final DocumentModelResolver.MODE REPO_AND_ID_REF
Reference is an id prefixed with a repository.
-
PATH_ONLY_REF
public static final DocumentModelResolver.MODE PATH_ONLY_REF
Reference is a path.
-
ID_ONLY_REF
public static final DocumentModelResolver.MODE ID_ONLY_REF
Reference is an id.
-
-
Method Detail
-
values
public static DocumentModelResolver.MODE[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DocumentModelResolver.MODE c : DocumentModelResolver.MODE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DocumentModelResolver.MODE valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-