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

public enum ObjectVariableModeType extends Enum<ObjectVariableModeType> implements TypeSafeEnum
Specifies how reference variables should be provided for the script. By default, they are resolved to objects.
  • Enum Constant Details

    • OBJECT

      public static final ObjectVariableModeType 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

      public static final ObjectVariableModeType 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

      public static ObjectVariableModeType[] 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

      public static ObjectVariableModeType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • value

      public String value()
      Description copied from interface: TypeSafeEnum
      Returns enum value defined as in schema.
      Specified by:
      value in interface TypeSafeEnum
      Returns:
    • fromValue

      public static ObjectVariableModeType fromValue(String v)