com.ashridgetech.jamda.uml
Class PropertyPredicate

java.lang.Object
  |
  +--com.ashridgetech.jamda.uml.PropertyPredicate
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public abstract class PropertyPredicate
extends java.lang.Object
implements org.apache.commons.collections.Predicate

A Predicate object for selecting Property objects. The client subclasses PropertyPredicate, and provides a select(com.ashridgetech.jamda.uml.Property) method that returns true if the given Property should be selected.

Version:
1.0
Author:
paulb

Constructor Summary
PropertyPredicate()
           
 
Method Summary
 boolean evaluate(java.lang.Object input)
          Implements the Predicate interface.
abstract  boolean select(Property property)
          Indicate whether property should be selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyPredicate

public PropertyPredicate()
Method Detail

evaluate

public boolean evaluate(java.lang.Object input)
Implements the Predicate interface. Calls the subclass's select(com.ashridgetech.jamda.uml.Property) method.

Specified by:
evaluate in interface org.apache.commons.collections.Predicate
Parameters:
input - - must be a Property
Returns:
- true if the Property should be selected

select

public abstract boolean select(Property property)
Indicate whether property should be selected.

Parameters:
property - the Property to test
Returns:
true if property should be selected


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.