org.tridas.io.defaults.values
Class BooleanDefaultValue
java.lang.Object
org.tridas.io.defaults.AbstractDefaultValue<Boolean>
org.tridas.io.defaults.values.BooleanDefaultValue
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- Past4BooleanDefaultValue
public class BooleanDefaultValue
- extends AbstractDefaultValue<Boolean>
- Author:
- Pete
Methods inherited from class org.tridas.io.defaults.AbstractDefaultValue |
clone, getKey, getMaxLength, getMinLength, getParent, isOverriding, isPadRight, setKey, setMaxLength, setMinLength, setOverriding, setOverridingValue, setPadRight, setParent, setValue |
value
protected Boolean value
BooleanDefaultValue
public BooleanDefaultValue()
BooleanDefaultValue
public BooleanDefaultValue(Boolean argValue)
getValue
public Boolean getValue()
- Description copied from class:
AbstractDefaultValue
- Gets the value.
- Specified by:
getValue
in class AbstractDefaultValue<Boolean>
- Returns:
- the value. can be null
- See Also:
org.tridas.io.defaults.IDefaultValue#getValue()
getStringValue
public String getStringValue()
- Description copied from class:
AbstractDefaultValue
- Gets the string representation of the value. If
AbstractDefaultValue.setMinLength(int)
is set,
then the string will be padded. If AbstractDefaultValue.getValue()
is null, an empty string is
returned (if minLength is set, then it is padded as well).
- Overrides:
getStringValue
in class AbstractDefaultValue<Boolean>
- Returns:
validateAndSetValue
protected boolean validateAndSetValue(Boolean argValue)
- Description copied from class:
AbstractDefaultValue
- Validate and set the value.
- Specified by:
validateAndSetValue
in class AbstractDefaultValue<Boolean>
- Parameters:
argValue
- the value, can be null.
- Returns:
- true if valid and set, false if not set and invalid
Copyright © 2011. All Rights Reserved.