com.parabon.common
Class BooleanParameterValue

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

public class BooleanParameterValue
extends java.lang.Object
implements ParameterValue

See Also:
Serialized Form

Field Summary
protected  boolean destroyed
           
protected static java.lang.String[] FALSE_STRINGS
           
protected static java.lang.String[] TRUE_STRINGS
           
protected  boolean value
           
 
Constructor Summary
BooleanParameterValue()
           
BooleanParameterValue(boolean value_)
           
 
Method Summary
static BooleanParameterValue allocate(com.parabon.util.ObjectPool pool, boolean 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()
           
 boolean get()
           
 java.lang.String getAsString()
           
 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(boolean value_)
           
 void setAsString(java.lang.String s)
           
 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, getDateValue, getDoubleValue, getFloatValue, getIntValue, getLongValue
 

Field Detail

TRUE_STRINGS

protected static final java.lang.String[] TRUE_STRINGS

FALSE_STRINGS

protected static final java.lang.String[] FALSE_STRINGS

value

protected boolean value

destroyed

protected boolean destroyed
Constructor Detail

BooleanParameterValue

public BooleanParameterValue(boolean value_)

BooleanParameterValue

public BooleanParameterValue()
Method Detail

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

allocate

public static BooleanParameterValue allocate(com.parabon.util.ObjectPool pool,
                                             boolean value)

get

public boolean get()

getAsString

public java.lang.String getAsString()

set

public void set(boolean value_)

setAsString

public void setAsString(java.lang.String s)

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

getBooleanValue

public boolean getBooleanValue()
Specified by:
getBooleanValue 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

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()