com.iphrase.runtime.query.constraint
Class Null

java.lang.Object
  |
  +--com.iphrase.runtime.query.Feature
        |
        +--com.iphrase.runtime.query.constraint.Constraint
              |
              +--com.iphrase.runtime.query.constraint.Null

public class Null
extends Constraint

Constrain any feature type to be either null or non-null.


Inner classes inherited from class com.iphrase.runtime.query.constraint.Constraint
Constraint.Flags
 
Constructor Summary
Null(java.lang.String feature, boolean value)
          Construct a Null constraint.
 
Method Summary
 java.lang.String getConstraintSubType()
          Determine subType representation of the non-range inequality constraints
 java.lang.Object getValue()
          Get the value associated with this constraint.
static Constraint newInstance(java.lang.String state)
          Attempt to create a new Null constraint from a OneStep serialization String.
 java.lang.String toString()
          Serialize this constraint using the OneStep serialization format.
 
Methods inherited from class com.iphrase.runtime.query.constraint.Constraint
clearExplicit, clearHidden, clearNew, clearNotSerialized, clearPrePruned, clearRequired, clearState, equals, getConstraintLabel, getDisplayPrefix, getIsMentions, getState, getType, isExplicit, isHidden, isMentions, isNew, isNotSerialized, isPrePruned, isRangeConstraintType, isRequired, matches, newInstance, newInstance, setExplicit, setHidden, setHidden, setNew, setNotSerialized, setPrePruned, setRequired, setState
 
Methods inherited from class com.iphrase.runtime.query.Feature
getId
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Null

public Null(java.lang.String feature,
            boolean value)
Construct a Null constraint.
Parameters:
feature - String id of constrained feature
value - true if feature's value must be null, false if feature's value must be non-null.
Method Detail

getValue

public java.lang.Object getValue()
Get the value associated with this constraint. Overrides Constraint.getValue()
Overrides:
getValue in class Constraint
Returns:
Object value associated with this constraint

toString

public java.lang.String toString()
Serialize this constraint using the OneStep serialization format. Overrides Object.toString()
Overrides:
toString in class java.lang.Object
Returns:
OneStep serialization String of this constraint

getConstraintSubType

public java.lang.String getConstraintSubType()
Determine subType representation of the non-range inequality constraints
Overrides:
getConstraintSubType in class Constraint
Returns:
subType - op, the values to return is: ""

newInstance

public static Constraint newInstance(java.lang.String state)
                              throws ArgumentError
Attempt to create a new Null constraint from a OneStep serialization String.
Parameters:
state - OneStep serialization String
Returns:
deserialized Constraint instance
Throws:
ArgumentError -  

© Copyright 2005, 2006. IBM Corporation. All rights reserved.