org.tridas.io.defaults.values
Class GenericDefaultValue<E>

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

public class GenericDefaultValue<E>
extends AbstractDefaultValue<E>

Author:
daniel

Constructor Summary
GenericDefaultValue()
           
GenericDefaultValue(E argValue)
           
 
Method Summary
 Object clone()
          Overriding clone, used to do deep copy of jaxb elements that implement Copyable.
 E getValue()
          Gets the value.
protected  boolean validateAndSetValue(E argValue)
          Validate and set the value.
 
Methods inherited from class org.tridas.io.defaults.AbstractDefaultValue
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

GenericDefaultValue

public GenericDefaultValue()

GenericDefaultValue

public GenericDefaultValue(E argValue)
Method Detail

getValue

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

Specified by:
getValue in class AbstractDefaultValue<E>
Returns:
the value. can be null
See Also:
AbstractDefaultValue.getValue()

validateAndSetValue

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

Specified by:
validateAndSetValue in class AbstractDefaultValue<E>
Parameters:
argValue - the value, can be null.
Returns:
true if valid and set, false if not set and invalid
See Also:
AbstractDefaultValue.validateAndSetValue(java.lang.Object)

clone

public Object clone()
Overriding clone, used to do deep copy of jaxb elements that implement Copyable. Otherwise, just a shallow copy.

Overrides:
clone in class AbstractDefaultValue<E>
See Also:
Object.clone()


Copyright © 2011. All Rights Reserved.