Class BooleanVariable
java.lang.Object
com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
com.xebialabs.xlrelease.domain.BaseConfiguration
com.xebialabs.xlrelease.domain.variables.Variable
com.xebialabs.xlrelease.domain.variables.Variable.VariableWithValue<Boolean>
com.xebialabs.xlrelease.domain.variables.BooleanVariable
- All Implemented Interfaces:
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem,VisitableItem,Serializable,Cloneable,Comparable<com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.xebialabs.xlrelease.domain.variables.Variable
Variable.VariableWithValue<V> -
Field Summary
Fields inherited from interface com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
SYNTHETIC_PROPERTIES_FIELD, TYPE_FIELD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns empty value for the specific sub type.getValue()Gets underlying value of this variable, or default value for templates.booleanbooleanisValueAssignableFrom(Object value) booleanTest if value is unset or empty.voidsetUntypedValue(Object newValue) Sets the underlying value of this variable from given object.voidMethods inherited from class com.xebialabs.xlrelease.domain.variables.Variable
accept, checkFolderVariableValidity, checkGlobalVariableValidity, checkValidity, clone, getDescription, getInternalValue, getKey, getLabel, getRequiresValue, getShowOnReleaseStart, getValueProvider, isInherited, setDescription, setInherited, setKey, setLabel, setRequiresValue, setShowOnReleaseStart, setValueProviderMethods inherited from class com.xebialabs.xlrelease.domain.BaseConfiguration
getFolderId, getTitle, hasId, setFolderId, setTitleMethods inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
compareTo, equals, get$ciAttributes, get$directoryReference, get$externalProperties, get$internalId, get$referenceId, get$securedCi, get$securedDirectoryReference, get$token, get$validationMessages, getId, getName, getProperty, getType, hashCode, hasProperty, set$ciAttributes, set$directoryReference, set$externalProperties, set$internalId, set$referenceId, set$securedCi, set$securedDirectoryReference, set$token, set$validationMessages, setId, setProperty, setType, toString
-
Constructor Details
-
BooleanVariable
public BooleanVariable()
-
-
Method Details
-
getValue
Description copied from class:VariableGets underlying value of this variable, or default value for templates. The specific type of value depends on the type of variable.- Specified by:
getValuein classVariable.VariableWithValue<Boolean>- Returns:
- the underlying value of this variable, or default value for templates.
-
getEmptyValue
Description copied from class:VariableReturns empty value for the specific sub type. Empty value is used when replacing unset optional variables.- Specified by:
getEmptyValuein classVariable- Returns:
- empty value for the specific sub type.
-
isValueEmpty
public boolean isValueEmpty()Description copied from class:VariableTest if value is unset or empty. Rely on theVariable.getEmptyValue()implementation.- Overrides:
isValueEmptyin classVariable- Returns:
- true if value is null or empty.
-
setValue
- Specified by:
setValuein classVariable.VariableWithValue<Boolean>
-
setUntypedValue
Description copied from class:VariableSets the underlying value of this variable from given object. If a conversion happens to be needed and fails, then anIllegalArgumentExceptionwill be thrown.- Specified by:
setUntypedValuein classVariable- 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:
isPasswordin classVariable
-
getValueAsString
- Specified by:
getValueAsStringin classVariable
-
getEmptyValueAsString
- Specified by:
getEmptyValueAsStringin classVariable
-
isValueAssignableFrom
- Specified by:
isValueAssignableFromin classVariable
-