org.apache.ws.jaxme.sqls.impl
Class ValueImpl

java.lang.Object
  extended by org.apache.ws.jaxme.sqls.impl.ValueImpl
All Implemented Interfaces:
Value

public class ValueImpl
extends java.lang.Object
implements Value

Implementation of a value.

Author:
Jochen Wiedmann

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.ws.jaxme.sqls.Value
Value.Type
 
Constructor Summary
ValueImpl(Value.Type pType, java.lang.Object pValue)
           
ValueImpl(Value pValue)
           
 
Method Summary
static java.lang.Object asValue(java.lang.Object pValue)
           
 boolean equals(java.lang.Object o)
           
 Value.Type getType()
          Returns the values type.
 java.lang.Object getValue()
          Returns the actual value.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueImpl

public ValueImpl(Value pValue)

ValueImpl

public ValueImpl(Value.Type pType,
                 java.lang.Object pValue)
Method Detail

getType

public Value.Type getType()
Description copied from interface: Value

Returns the values type.

Specified by:
getType in interface Value

getValue

public java.lang.Object getValue()
Description copied from interface: Value

Returns the actual value. This may be null.

Specified by:
getValue in interface Value

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

asValue

public static java.lang.Object asValue(java.lang.Object pValue)