com.parabon.common
Class StringParameterValue

java.lang.Object
  extended by com.parabon.common.StringParameterValue
All Implemented Interfaces:
ParameterValue, com.parabon.util.ObjectPool.Destroyable, com.parabon.util.ObjectPool.Reclaimable, java.io.Externalizable, java.io.Serializable

public class StringParameterValue
extends java.lang.Object
implements ParameterValue

See Also:
Serialized Form

Field Summary
protected  boolean destroyed
           
protected  java.lang.String value
           
 
Constructor Summary
StringParameterValue()
           
StringParameterValue(java.lang.String value_)
           
 
Method Summary
static StringParameterValue allocate(com.parabon.util.ObjectPool pool, java.lang.String value)
           
 java.lang.Object clone()
           
 ParameterValue cloneParameterValue(com.parabon.util.ObjectPool primePool)
           Creates a functional copy of the ParameterValue, using the specified ObjectPool for instantiation.
 void destroy()
           
 java.lang.String get()
           
 byte[] getBinaryValue()
           
 boolean getBooleanValue()
           
 java.util.Date getDateValue()
           
 double getDoubleValue()
           
 float getFloatValue()
           
 int getIntValue()
           
 long getLongValue()
           
 java.lang.String getStringValue()
           
 void readExternal(java.io.ObjectInput in)
           
 void reclaim()
           
 void set(java.lang.String value_)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.parabon.common.ParameterValue
getBinaryValue, getBooleanValue, getDateValue, getDoubleValue, getFloatValue, getIntValue, getLongValue
 

Field Detail

value

protected java.lang.String value

destroyed

protected boolean destroyed
Constructor Detail

StringParameterValue

public StringParameterValue(java.lang.String value_)

StringParameterValue

public StringParameterValue()
Method Detail

allocate

public static StringParameterValue allocate(com.parabon.util.ObjectPool pool,
                                            java.lang.String value)

reclaim

public void reclaim()
Specified by:
reclaim in interface com.parabon.util.ObjectPool.Reclaimable

destroy

public void destroy()
Specified by:
destroy in interface com.parabon.util.ObjectPool.Destroyable

get

public java.lang.String get()

set

public void set(java.lang.String value_)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

cloneParameterValue

public ParameterValue cloneParameterValue(com.parabon.util.ObjectPool primePool)
Description copied from interface: ParameterValue

Creates a functional copy of the ParameterValue, using the specified ObjectPool for instantiation. A null value for the pool is acceptable.

Specified by:
cloneParameterValue in interface ParameterValue

getStringValue

public java.lang.String getStringValue()
Specified by:
getStringValue in interface ParameterValue

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

getBooleanValue

public boolean getBooleanValue()

getLongValue

public long getLongValue()

getIntValue

public int getIntValue()

getDoubleValue

public double getDoubleValue()

getFloatValue

public float getFloatValue()

getDateValue

public java.util.Date getDateValue()

getBinaryValue

public byte[] getBinaryValue()