Class SetStringVariable

  • All Implemented Interfaces:
    com.xebialabs.deployit.plugin.api.udm.ConfigurationItem, VisitableItem, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem>

    public class SetStringVariable
    extends Variable.VariableWithValue<java.util.Set<java.lang.String>>
    See Also:
    Serialized Form
    • Constructor Detail

      • SetStringVariable

        public SetStringVariable()
    • Method Detail

      • getValue

        public java.util.Set<java.lang.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<java.util.Set<java.lang.String>>
        Returns:
        the underlying value of this variable, or default value for templates.
      • getEmptyValue

        public java.util.Set<java.lang.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​(java.util.Set<java.lang.String> value)
        Specified by:
        setValue in class Variable.VariableWithValue<java.util.Set<java.lang.String>>
      • setUntypedValue

        public void setUntypedValue​(java.lang.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.
      • isValueAssignableFrom

        public boolean isValueAssignableFrom​(java.lang.Object value)
        Specified by:
        isValueAssignableFrom in class Variable