es.rediris.aarr.rules
Class Condition

java.lang.Object
  extended by es.rediris.aarr.rules.Condition
Direct Known Subclasses:
ConditionDefault, ConditionField, ConditionReceive

public abstract class Condition
extends java.lang.Object

This abstract class defines the methods that a Condition must contain. These methods are used to access and modify properties in a condition.

Author:
kan

Field Summary
static java.lang.String nameElementXML
          name of an XML element named 'condition'
 
Constructor Summary
Condition()
           
 
Method Summary
abstract  boolean checkCondition()
          Checks if this Condition is TRUE or FALSE
abstract  java.lang.String getName()
          Returns the name of the current condition
abstract  boolean needsAQuery()
          Returns true if this Condition needs a query
abstract  void setName(java.lang.String name)
          Sets the name for this condition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nameElementXML

public static final java.lang.String nameElementXML
name of an XML element named 'condition'

See Also:
Constant Field Values
Constructor Detail

Condition

public Condition()
Method Detail

getName

public abstract java.lang.String getName()
Returns the name of the current condition

Returns:
the name of the current condition

setName

public abstract void setName(java.lang.String name)
Sets the name for this condition

Parameters:
name - the name of the Condition

needsAQuery

public abstract boolean needsAQuery()
Returns true if this Condition needs a query

Returns:
True if the condition needs a query, or false

checkCondition

public abstract boolean checkCondition()
Checks if this Condition is TRUE or FALSE

Returns:
true if it verifies the condition, or false if it not