pedviz.algorithms.filter
Class TextCondition
java.lang.Object
  
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
 
 
 
| 
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 | 
 
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 - traitmode - modevalue - 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 - traitmode - modevalue1 - valuevalue2 - value
 
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.