org.tridas.io.defaults.values
Class DoubleDefaultValue

java.lang.Object
  extended by org.tridas.io.defaults.AbstractDefaultValue<Double>
      extended by org.tridas.io.defaults.values.DoubleDefaultValue
All Implemented Interfaces:
Cloneable

public class DoubleDefaultValue
extends AbstractDefaultValue<Double>


Constructor Summary
DoubleDefaultValue()
           
DoubleDefaultValue(Double argDouble)
           
DoubleDefaultValue(Double argMin, Double argMax)
           
DoubleDefaultValue(Double argDouble, Double argMin, Double argMax)
           
DoubleDefaultValue(Double argDouble, Double argMin, Double argMax, int argMinLength, int argMaxLength)
          Constructor for a default field of type double
 
Method Summary
 double getMax()
          Maximum the double can be
 double getMin()
          Minimum the double can be
 Double getValue()
          Gets the value.
 boolean isFriendlyRangeValidation()
          if true, it will move the value into the range instead of disregarding the modification.
 void setFriendlyRangeValidation(boolean changeToRange)
          if true, it will move the value into the range instead of disregarding the modification.
 void setMax(double max)
          Maximum the double can be
 void setMin(double min)
          Minimum the double can be
protected  boolean validateAndSetValue(Double argValue)
          Validate and set the value.
 
Methods inherited from class org.tridas.io.defaults.AbstractDefaultValue
clone, getKey, getMaxLength, getMinLength, getParent, getStringValue, 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
 

Constructor Detail

DoubleDefaultValue

public DoubleDefaultValue()

DoubleDefaultValue

public DoubleDefaultValue(Double argDouble)

DoubleDefaultValue

public DoubleDefaultValue(Double argDouble,
                          Double argMin,
                          Double argMax)

DoubleDefaultValue

public DoubleDefaultValue(Double argMin,
                          Double argMax)

DoubleDefaultValue

public DoubleDefaultValue(Double argDouble,
                          Double argMin,
                          Double argMax,
                          int argMinLength,
                          int argMaxLength)
Constructor for a default field of type double

Parameters:
argDouble -
argMin -
argMax -
argMinLength -
argMaxLength -
Method Detail

getValue

public Double getValue()
Description copied from class: AbstractDefaultValue
Gets the value.

Specified by:
getValue in class AbstractDefaultValue<Double>
Returns:
the value. can be null
See Also:
org.tridas.io.defaults.IDefaultValue#getValue()

validateAndSetValue

protected boolean validateAndSetValue(Double argValue)
Description copied from class: AbstractDefaultValue
Validate and set the value.

Specified by:
validateAndSetValue in class AbstractDefaultValue<Double>
Parameters:
argValue - the value, can be null.
Returns:
true if valid and set, false if not set and invalid
See Also:
org.tridas.io.defaults.IDefaultValue#setValue(java.lang.Object)

setMax

public void setMax(double max)
Maximum the double can be

Parameters:
max - the max to set

getMax

public double getMax()
Maximum the double can be

Returns:
the max

setMin

public void setMin(double min)
Minimum the double can be

Parameters:
min - the min to set

getMin

public double getMin()
Minimum the double can be

Returns:
the min

setFriendlyRangeValidation

public void setFriendlyRangeValidation(boolean changeToRange)
if true, it will move the value into the range instead of disregarding the modification. default of false

Parameters:
changeToRange - the changeToRange to set

isFriendlyRangeValidation

public boolean isFriendlyRangeValidation()
if true, it will move the value into the range instead of disregarding the modification. default of false

Returns:
the changeToRange


Copyright © 2011. All Rights Reserved.