org.tridas.io.defaults.values
Class BooleanDefaultValue

java.lang.Object
  extended by org.tridas.io.defaults.AbstractDefaultValue<Boolean>
      extended by org.tridas.io.defaults.values.BooleanDefaultValue
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
Past4BooleanDefaultValue

public class BooleanDefaultValue
extends AbstractDefaultValue<Boolean>

Author:
Pete

Field Summary
protected  Boolean value
           
 
Constructor Summary
BooleanDefaultValue()
           
BooleanDefaultValue(Boolean argValue)
           
 
Method Summary
 String getStringValue()
          Gets the string representation of the value.
 Boolean getValue()
          Gets the value.
protected  boolean validateAndSetValue(Boolean argValue)
          Validate and set the value.
 
Methods inherited from class org.tridas.io.defaults.AbstractDefaultValue
clone, getKey, getMaxLength, getMinLength, getParent, isOverriding, isPadRight, setKey, setMaxLength, setMinLength, setOverriding, setOverridingValue, setPadRight, setParent, setValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected Boolean value
Constructor Detail

BooleanDefaultValue

public BooleanDefaultValue()

BooleanDefaultValue

public BooleanDefaultValue(Boolean argValue)
Method Detail

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.