com.iphrase.runtime.query.constraint
Class Taxonomy

java.lang.Object
  |
  +--com.iphrase.runtime.query.Feature
        |
        +--com.iphrase.runtime.query.constraint.Constraint
              |
              +--com.iphrase.runtime.query.constraint.Taxonomy
Direct Known Subclasses:
Taxonomy.Contains, Taxonomy.NotContains, Taxonomy.NotStartsWith, Taxonomy.StartsWith

public class Taxonomy
extends Constraint

Represent constraints for taxonomy feature types.


Inner Class Summary
static class Taxonomy.Contains
          Constrain a feature to contain a particular taxonomy value.
static class Taxonomy.NotContains
          Constrain a feature to not contain a particular taxonomy value.
static class Taxonomy.NotStartsWith
          Constrain a feature to not start with a particular taxonomy value.
static class Taxonomy.StartsWith
          Constrain a feature to start with a particular taxonomy value.
 
Inner classes inherited from class com.iphrase.runtime.query.constraint.Constraint
Constraint.Flags
 
Method Summary
 java.lang.String getConstraintSubType()
          Determine subType representation of the non-range inequality constraints
 java.lang.String getDisplayPrefix()
          Returns constraint display prefix.
 java.lang.Object getValue()
          Get the value associated with this constraint.
 boolean matches(Constraint c)
          Determine whether this Constraint matches another.
static Constraint newInstance(java.lang.String state)
          Attempt to create a new Taxonomy 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, getIsMentions, getState, getType, isExplicit, isHidden, isMentions, isNew, isNotSerialized, isPrePruned, isRangeConstraintType, isRequired, 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
 

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

matches

public boolean matches(Constraint c)
Determine whether this Constraint matches another.
Overrides:
matches in class Constraint
Parameters:
c - Constraint to be matched against this
Returns:
true if the two constraints are of the same type and have identical fields except for their flags, else false.

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: "ssl", "ss", "nssl", "nss"

getDisplayPrefix

public java.lang.String getDisplayPrefix()
Returns constraint display prefix.
Overrides:
getDisplayPrefix in class Constraint
Returns:
one of the following values: "ss", "nssl", "nss", ""

newInstance

public static Constraint newInstance(java.lang.String state)
                              throws ArgumentError
Attempt to create a new Taxonomy 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.