Class Constant

All Implemented Interfaces:
LocalId, ContentConstants, AppianTypeHolder, Serializable

public class Constant extends Rule
Represents a constant, which can be used in expressions throughout the product.
See Also:
  • Field Details

  • Constructor Details

    • Constant

      public Constant()
      Constructs a new constant object.
  • Method Details

    • getTypedValue

      public TypedValue getTypedValue()
      Gets the value of the Constant as a TypedValue. This is not stored as a full-fledged field, but instead is stored as attributes.
      Returns:
      the constant value
      See Also:
    • setTypedValue

      public void setTypedValue(TypedValue typedValue)
      Sets the value of the Constant as a TypedValue.
      See Also:
    • getValue

      @Deprecated public Object getValue()
      Deprecated.
      Gets the value of the constant. This is not stored as a full-fledged field, but instead is stored as an attribute.
      Returns:
      the value
      See Also:
    • setValue

      @Deprecated public void setValue(Object value_)
      Deprecated.
      Sets the value of the constant. This is not stored as a full-fledged field, but instead is stored as an attribute. This field can be updated in the database.
      Parameters:
      value_ - the value
      See Also:
    • getIcon

      public String getIcon()
      Specified by:
      getIcon in class Rule
    • getIsEnvironmentSpecific

      public Boolean getIsEnvironmentSpecific()
      Tells if the constant is marked as environment specific.
      Returns:
      true if the constant is environment specific; false otherwise
    • setIsEnvironmentSpecific

      public void setIsEnvironmentSpecific(Boolean isEnvironmentSpecific)
      Sets whether or not the constant is environment specific.
      Parameters:
      isEnvironmentSpecific - true to set the constant as environment specific