SienaXML (v.2.0.0) API documentation

siena.xml.rules
Class ExistsCondition

java.lang.Object
  extended by siena.xml.rules.ExistsCondition

public class ExistsCondition
extends java.lang.Object

Condition that checks to see if something exists (not null) or not (null)


Constructor Summary
ExistsCondition(boolean shouldItExist)
          This is the consturctor for this condition object.
 
Method Summary
 boolean meetCondition(java.lang.Object whatToEvaluate)
          This method tests to see if the object should or should not be present in the tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExistsCondition

public ExistsCondition(boolean shouldItExist)
This is the consturctor for this condition object.

Parameters:
shouldItExist - Boolean that sets whether the object to be tested should exist or not.
Method Detail

meetCondition

public boolean meetCondition(java.lang.Object whatToEvaluate)
This method tests to see if the object should or should not be present in the tag. If the object should be present in the tag and it is not, then this method will return false. If the object should not be present in the tag and it is, then this method will also return false. All other cases the method will return true.

Parameters:
whatToEvaluate - Object to see if it should be present or not in the tag.
Returns:
true or false.

SienaXML (v.2.0.0) API documentation

Copyright © 2000-2002 University of Colorado.
This documentation is maintained by Antonio Carzaniga