com.parabon.ec.util
Class ParameterLocator

java.lang.Object
  extended by com.parabon.ec.util.ParameterLocator
All Implemented Interfaces:
java.io.Serializable

public abstract class ParameterLocator
extends java.lang.Object
implements java.io.Serializable

Decorate parameter value with the location of the configuration the value is defined in.

Author:
Curt Larock
See Also:
Serialized Form

Constructor Summary
protected ParameterLocator()
          Should only be used by custom serialization code.
  ParameterLocator(java.lang.Object value)
          Constructs locator
 
Method Summary
abstract  java.lang.String getOrigin()
           
 java.lang.Object getValue()
          Gets parameter value.
protected  void setValue(java.lang.Object value)
          Sets parameter value.
 java.lang.String toString()
          Constructs a string representation of the parameter and its value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterLocator

public ParameterLocator(java.lang.Object value)
Constructs locator

Parameters:
value - Parameter value

ParameterLocator

protected ParameterLocator()
Should only be used by custom serialization code.

Method Detail

getValue

public java.lang.Object getValue()
Gets parameter value.

Returns:
Parameter value

setValue

protected void setValue(java.lang.Object value)
Sets parameter value. Should only be used by custom serialization code.


getOrigin

public abstract java.lang.String getOrigin()

toString

public java.lang.String toString()
Constructs a string representation of the parameter and its value.

Overrides:
toString in class java.lang.Object
Returns:
String parameter/value.