Enum ObjectVariableModeType

  • All Implemented Interfaces:
    Serializable, Comparable<ObjectVariableModeType>

    public enum ObjectVariableModeType
    extends Enum<ObjectVariableModeType>

    Java class for ObjectVariableModeType.

    The following schema fragment specifies the expected content contained within this class.

     <simpleType name="ObjectVariableModeType">
       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
         <enumeration value="object"/>
         <enumeration value="prismReference"/>
       </restriction>
     </simpleType>
     
    • Enum Constant Detail

      • 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 Detail

      • values

        public static ObjectVariableModeType[] 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 (ObjectVariableModeType c : ObjectVariableModeType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

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

        public String value()