org.z3950.zing.cql
Class Modifier

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

public class Modifier
extends 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.


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

Constructor Detail

Modifier

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


Modifier

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

Method Detail

getType

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


getComparison

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


getValue

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


toCQL

public String toCQL()


Copyright © 2008-2014 Index Data. All Rights Reserved.