wyvern.lib.predicates
Class StringPropertyPredicate

java.lang.Object
  extended bywyvern.lib.predicates.StringPropertyPredicate
All Implemented Interfaces:
Predicate

public class StringPropertyPredicate
extends java.lang.Object
implements Predicate

Checks if the object has a String property with the given name and value.

Version:
1.0, Jun 14, 2002
Author:
Steve Yegge

Constructor Summary
StringPropertyPredicate(java.lang.String name, java.lang.String value)
          Constructs a new StringPropertyPredicate
 
Method Summary
 boolean predicate(GameObject obj)
          Tests for the presence of the specified property+value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPropertyPredicate

public StringPropertyPredicate(java.lang.String name,
                               java.lang.String value)
Constructs a new StringPropertyPredicate

Parameters:
name - the property name to check
value - the property value to check
Method Detail

predicate

public boolean predicate(GameObject obj)
Tests for the presence of the specified property+value

Specified by:
predicate in interface Predicate
Parameters:
obj - the object to check
Returns:
true if the object has a string property with the specified name and value