com.im.df.api 5.9

com.im.df.api.dml
Class DFTermValue

java.lang.Object
  extended by com.im.df.api.dml.DFTerm
      extended by com.im.df.api.dml.DFTermValue

public final class DFTermValue
extends DFTerm

This object represents a constant value in the hierarchical substructure of DFTerms, it's wrapper class around such a constant value.

It's not allowed to wrap null value. If you really want to fill null into DFTerm, then you must use your special constant non-null value (for example if the value is of type class MyType, then add public static final MyType NULL = new MyType() constant to your class and use this constant instead of null.

The object is immutable, the value cannot be changed once the object is created. Currently it doesn't have public constructor nor create method. If you want to use this object you can create using DFTermsFactory static methods.


Method Summary
 void accept(DFTermVisitor visitor)
           
 boolean equals(Object obj)
           
 Class<? extends DFFieldDataTypeCapability> getTermReturnType()
          This implementation always returns null as value cannot provide the type.
 Object getValue()
          Get the value which is wrapped by this class.
 int hashCode()
           
 String toString()
           
 String toString(DFOperator operator)
           
 
Methods inherited from class com.im.df.api.dml.DFTerm
validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getValue

public Object getValue()
Get the value which is wrapped by this class.

Returns:
The value. Never returns null.

getTermReturnType

public Class<? extends DFFieldDataTypeCapability> getTermReturnType()
This implementation always returns null as value cannot provide the type.

Specified by:
getTermReturnType in class DFTerm
Returns:
The class which is subclass of DFFieldDataTypeCapability or null

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(DFOperator operator)

accept

public void accept(DFTermVisitor visitor)
Specified by:
accept in class DFTerm

com.im.df.api 5.9