Enum Class ObjectVariableModeType
java.lang.Object
java.lang.Enum<ObjectVariableModeType>
com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectVariableModeType
- All Implemented Interfaces:
TypeSafeEnum
,Serializable
,Comparable<ObjectVariableModeType>
,Constable
Specifies how reference variables should be provided for the script.
By default, they are resolved to objects.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe variables will be presented as objects, e.g.The variable will be presented as a Prism reference value (PrismReferenceValue). -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectVariableModeType
value()
Returns enum value defined as in schema.static ObjectVariableModeType
Returns the enum constant of this class with the specified name.static ObjectVariableModeType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OBJECT
The variables will be presented as objects, e.g. UserType, ResourceType. This is very convenient for use in scripts. But it has drawbacks. E.g. if the object cannot be resolved from a reference then it will be presented as null. No information about the object could be determined, not even its OID or name (even though such information was present in the reference). -
PRISM_REFERENCE
The variable will be presented as a Prism reference value (PrismReferenceValue). The reference value will contain all the information from the original reference or object (OID, type, name). If the object is available or if it could be resolved then the object itself will be also present in the reference value (in "object" property). This method is less convenient for scripts, but it is more reliable in corner cases.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
value
Description copied from interface:TypeSafeEnum
Returns enum value defined as in schema.- Specified by:
value
in interfaceTypeSafeEnum
- Returns:
-
fromValue
-