org.openmdx.compatibility.base.query
Class FilterProperty

java.lang.Object
  extended by org.openmdx.compatibility.base.query.FilterProperty
All Implemented Interfaces:
Serializable

public final class FilterProperty
extends Object
implements Serializable

A Filter Property consists of

  1. a quantor
  2. the name of the attribute
  3. an operator
  4. an array of values (its minimal and maximal length is defined by the operator

See Also:
Serialized Form

Constructor Summary
FilterProperty(short quantor, String name, short operator)
          Creates a new FilterProperty
FilterProperty(short quantor, String name, short operator, Object[] values)
          Creates a new FilterProperty
 
Method Summary
 boolean equals(Object object)
           
 Object getValue(int index)
           
 Object[] getValues()
           
 int hashCode()
           
 String name()
           
 short operator()
          The operator
 short quantor()
          The quantor
 String toString()
          Returns a string representation of the object.
 List values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterProperty

public FilterProperty(short quantor,
                      String name,
                      short operator,
                      Object[] values)
Creates a new FilterProperty

Parameters:
quantor - defines which quantor has to be applied
name - defines to which attribute to filter has to be applied
operator - defines which operator has to be applied
values - Defines the "right" operands of the operator

FilterProperty

public FilterProperty(short quantor,
                      String name,
                      short operator)
Creates a new FilterProperty

Parameters:
quantor - defines which quantor has to be applied
name - defines to which attribute to filter has to be applied
operator - defines which operator has to be applied
Method Detail

quantor

public final short quantor()
The quantor

See Also:
Quantors

name

public final String name()

operator

public final short operator()
The operator

See Also:
FilterOperators

getValues

public Object[] getValues()

getValue

public Object getValue(int index)
Parameters:
index -

values

public List values()

toString

public String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

Overrides:
toString in class Object
Returns:
the filter property's string representation

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.