pedviz.algorithms.filter
Class TextCondition

java.lang.Object
  extended by pedviz.algorithms.filter.TextCondition
All Implemented Interfaces:
Condition

public class TextCondition
extends java.lang.Object
implements Condition

This class represents a Condtion for a trait, which contains a string value.

Author:
lukas forer

Field Summary
 
Fields inherited from interface pedviz.algorithms.filter.Condition
BETWEEN, EQUALS, GREATER, LESSER, NBETWEEN, NEQUALS
 
Constructor Summary
TextCondition(java.lang.String data, int mode, java.lang.String value)
          Creates a new TextCondition for the given trait with the given mode and values.
TextCondition(java.lang.String data, int mode, java.lang.String value1, java.lang.String value2)
          Creates a new TextCondition for the given trait with the given mode and values.
 
Method Summary
 boolean check(Node node)
          Checks if the condition for the given node is valid.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextCondition

public TextCondition(java.lang.String data,
                     int mode,
                     java.lang.String value)
Creates a new TextCondition for the given trait with the given mode and values.

Parameters:
data - trait
mode - mode
value - value

TextCondition

public TextCondition(java.lang.String data,
                     int mode,
                     java.lang.String value1,
                     java.lang.String value2)
Creates a new TextCondition for the given trait with the given mode and values.

Parameters:
data - trait
mode - mode
value1 - value
value2 - value
Method Detail

check

public boolean check(Node node)
Description copied from interface: Condition
Checks if the condition for the given node is valid.

Specified by:
check in interface Condition
Parameters:
node - Node object
Returns:
true, if the condition for the given node is valid.