org.javagen.agile.core.emitter.logic
Class Equals

java.lang.Object
  extended by org.javagen.agile.core.emitter.logic.Equals
All Implemented Interfaces:
Predicate

public class Equals
extends Object
implements Predicate

Equals predicate compares one or more string constants to value abtained from context using contextKey. If any constant is a match return true.

Author:
Richard Easterling

Field Summary
(package private)  String contextKey
           
(package private)  String[] values
           
 
Constructor Summary
Equals(String contextKey, String value)
           
Equals(String contextKey, String value1, String value2)
           
Equals(String contextKey, String value1, String value2, String value3)
           
 
Method Summary
 boolean eval(File outputFile, Context context)
           
 String getContextKey()
           
 String[] getValues()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextKey

String contextKey

values

String[] values
Constructor Detail

Equals

public Equals(String contextKey,
              String value)

Equals

public Equals(String contextKey,
              String value1,
              String value2)

Equals

public Equals(String contextKey,
              String value1,
              String value2,
              String value3)
Method Detail

getContextKey

public String getContextKey()

getValues

public String[] getValues()

eval

public boolean eval(File outputFile,
                    Context context)
Specified by:
eval in interface Predicate
Parameters:
outputFile - to check output on
Returns:


Copyright 2006-2006-2007 Outsource Cafe Inc.. All Rights Reserved.