Package org.fcrepo.storage.ocfl
Enum InteractionModel
- java.lang.Object
-
- java.lang.Enum<InteractionModel>
-
- org.fcrepo.storage.ocfl.InteractionModel
-
- All Implemented Interfaces:
Serializable,Comparable<InteractionModel>
public enum InteractionModel extends Enum<InteractionModel>
Represents known interaction models.- Author:
- pwinckles
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACLBASIC_CONTAINERDIRECT_CONTAINERINDIRECT_CONTAINERNON_RDFNON_RDF_DESCRIPTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InteractionModelfromString(String value)StringgetUri()static InteractionModelvalueOf(String name)Returns the enum constant of this type with the specified name.static InteractionModel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NON_RDF
public static final InteractionModel NON_RDF
-
NON_RDF_DESCRIPTION
public static final InteractionModel NON_RDF_DESCRIPTION
-
ACL
public static final InteractionModel ACL
-
BASIC_CONTAINER
public static final InteractionModel BASIC_CONTAINER
-
INDIRECT_CONTAINER
public static final InteractionModel INDIRECT_CONTAINER
-
DIRECT_CONTAINER
public static final InteractionModel DIRECT_CONTAINER
-
-
Method Detail
-
values
public static InteractionModel[] 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 (InteractionModel c : InteractionModel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InteractionModel 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
-
getUri
public String getUri()
- Returns:
- the uri of the interaction model
-
fromString
public static InteractionModel fromString(String value)
- Parameters:
value- interaction model uri- Returns:
- the model mapped to the uri
- Throws:
IllegalArgumentException- if there is no model mapped to the uri
-
-