org.qtitools.qti.value
Class NullValue

java.lang.Object
  extended by org.qtitools.qti.value.NullValue
All Implemented Interfaces:
java.io.Serializable, Value

public class NullValue
extends java.lang.Object
implements Value

Represents NULL value.

This class is not mutable and can contain only NULL value.

Cardinality of this class is always null and BaseType is always null.

Author:
Jiri Kajaba
See Also:
Cardinality, BaseType, Serialized Form

Constructor Summary
NullValue()
           
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true for any value which is NULL; false otherwise.
 BaseType getBaseType()
          Returns baseType of this value.
 Cardinality getCardinality()
          Returns cardinality of this value.
 int hashCode()
           
 boolean isNull()
          Returns true if this value is NULL or false otherwise.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullValue

public NullValue()
Method Detail

isNull

public boolean isNull()
Description copied from interface: Value
Returns true if this value is NULL or false otherwise.

Specified by:
isNull in interface Value
Returns:
true if this value is NULL or false otherwise

getCardinality

public Cardinality getCardinality()
Description copied from interface: Value
Returns cardinality of this value.

If value is NULL returns null.

Specified by:
getCardinality in interface Value
Returns:
cardinality of this value

getBaseType

public BaseType getBaseType()
Description copied from interface: Value
Returns baseType of this value.

If value is NULL or record cardinality returns null.

Specified by:
getBaseType in interface Value
Returns:
baseType of this value

equals

public boolean equals(java.lang.Object object)
Returns true for any value which is NULL; false otherwise.

Overrides:
equals in class java.lang.Object
Parameters:
object - the reference object with which to compare
Returns:
true for any value which is NULL; false otherwise

hashCode

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009. All Rights Reserved.