org.z3950.zing.cql
Class Modifier

java.lang.Object
  extended by org.z3950.zing.cql.Modifier

public class Modifier
extends java.lang.Object

Represents a single modifier, consisting of three elements: a type, a comparision and a value. For example, "distance", "<", "3". The type is mandatory; either the comparison and value must both occur, or neither must.

This class is used only by ModifierSet.

Version:
$Id: Modifier.java,v 1.4 2007-07-03 13:29:34 mike Exp $

Constructor Summary
Modifier(java.lang.String type)
          Creates a new Modifier with the specified type but no comparison or value.
Modifier(java.lang.String type, java.lang.String comparison, java.lang.String value)
          Creates a new Modifier with the specified type, comparison and value.
 
Method Summary
 java.lang.String getComparison()
          Returns the comparison with which the Modifier was created.
 java.lang.String getType()
          Returns the type with which the Modifier was created.
 java.lang.String getValue()
          Returns the value with which the Modifier was created.
 java.lang.String toCQL()
           
 java.lang.String toXCQL(int level, java.lang.String relationElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Modifier

public Modifier(java.lang.String type,
                java.lang.String comparison,
                java.lang.String value)
Creates a new Modifier with the specified type, comparison and value.


Modifier

public Modifier(java.lang.String type)
Creates a new Modifier with the specified type but no comparison or value.

Method Detail

getType

public java.lang.String getType()
Returns the type with which the Modifier was created.


getComparison

public java.lang.String getComparison()
Returns the comparison with which the Modifier was created.


getValue

public java.lang.String getValue()
Returns the value with which the Modifier was created.


toXCQL

public java.lang.String toXCQL(int level,
                               java.lang.String relationElement)

toCQL

public java.lang.String toCQL()