Package com.abstratt.kirra
Enum InstanceManagement.DataProfile
- java.lang.Object
-
- java.lang.Enum<InstanceManagement.DataProfile>
-
- com.abstratt.kirra.InstanceManagement.DataProfile
-
- All Implemented Interfaces:
Serializable
,Comparable<InstanceManagement.DataProfile>
- Enclosing interface:
- InstanceManagement
public static enum InstanceManagement.DataProfile extends Enum<InstanceManagement.DataProfile>
A full instance loads all values for all properties and relationships available in the data repository. A slim instance contains only properties (and, less commonly, relationships) that are considered "essential". An empty instance may have only the object id and data for its mnemonic property.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstanceManagement.DataProfile
from(boolean full)
static InstanceManagement.DataProfile
from(String name)
InstanceManagement.DataProfile
lighter()
static InstanceManagement.DataProfile
valueOf(String name)
Returns the enum constant of this type with the specified name.static InstanceManagement.DataProfile[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Full
public static final InstanceManagement.DataProfile Full
-
Slim
public static final InstanceManagement.DataProfile Slim
-
Empty
public static final InstanceManagement.DataProfile Empty
-
-
Method Detail
-
values
public static InstanceManagement.DataProfile[] 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 (InstanceManagement.DataProfile c : InstanceManagement.DataProfile.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InstanceManagement.DataProfile 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
-
from
public static InstanceManagement.DataProfile from(boolean full)
-
from
public static InstanceManagement.DataProfile from(String name)
-
lighter
public InstanceManagement.DataProfile lighter()
-
-