Class StringVariable

All Implemented Interfaces:
ConfigurationItem, VisitableItem, Serializable, Cloneable, Comparable<BaseConfigurationItem>
Direct Known Subclasses:
ReferenceVariable

public class StringVariable extends Variable.VariableWithValue<String>
See Also:
  • Field Details

    • value

      @Property(required=false, description="Value of the release variable or default value of the template variable") protected String value
    • multiline

      @Property(required=false, defaultValue="false", description="If checked variable value will be multiline text ") protected boolean multiline
    • preventInterpolation

      @Property(required=false, description="Set this to true if you don\'t want the contents of this variable scanned for other variables and updated after the variables are resolved.") protected boolean preventInterpolation
  • Constructor Details

    • StringVariable

      public StringVariable()
  • Method Details

    • getValue

      public String getValue()
      Description copied from class: Variable
      Gets underlying value of this variable, or default value for templates. The specific type of value depends on the type of variable.
      Specified by:
      getValue in class Variable.VariableWithValue<String>
      Returns:
      the underlying value of this variable, or default value for templates.
    • getMultiline

      public boolean getMultiline()
    • setMultiline

      public void setMultiline(boolean multiline)
    • getEmptyValue

      public String getEmptyValue()
      Description copied from class: Variable
      Returns empty value for the specific sub type. Empty value is used when replacing unset optional variables.
      Specified by:
      getEmptyValue in class Variable
      Returns:
      empty value for the specific sub type.
    • setValue

      public void setValue(String value)
      Specified by:
      setValue in class Variable.VariableWithValue<String>
    • setUntypedValue

      public void setUntypedValue(Object newValue)
      Description copied from class: Variable
      Sets the underlying value of this variable from given object. If a conversion happens to be needed and fails, then an IllegalArgumentException will be thrown.
      Specified by:
      setUntypedValue in class Variable
      Parameters:
      newValue - the value to set: either of the type needed by this variable type, or one of convertible types.
    • isPassword

      public boolean isPassword()
      Specified by:
      isPassword in class Variable
    • getValueAsString

      public String getValueAsString()
      Specified by:
      getValueAsString in class Variable
    • getEmptyValueAsString

      public String getEmptyValueAsString()
      Specified by:
      getEmptyValueAsString in class Variable
    • isValueAssignableFrom

      public boolean isValueAssignableFrom(Object value)
      Specified by:
      isValueAssignableFrom in class Variable
    • isPreventInterpolation

      public boolean isPreventInterpolation()
    • setPreventInterpolation

      public void setPreventInterpolation(boolean preventInterpolation)