org.alfresco.web.evaluator
Class ValueEvaluator

java.lang.Object
  extended by org.alfresco.web.evaluator.BaseEvaluator
      extended by org.alfresco.web.evaluator.ValueEvaluator
All Implemented Interfaces:
Evaluator

public class ValueEvaluator
extends BaseEvaluator


Field Summary
 
Fields inherited from class org.alfresco.web.evaluator.BaseEvaluator
args, metadata, negateOutput
 
Constructor Summary
ValueEvaluator()
           
 
Method Summary
 boolean evaluate(org.json.simple.JSONObject jsonObject)
          Evaluator implementations abstract method.
 void setAccessor(java.lang.String accessor)
          Accessor for value to compare against in dot notation format, e.g.
 void setComparator(Comparator comparator)
          Comparator class
 
Methods inherited from class org.alfresco.web.evaluator.BaseEvaluator
evaluate, evaluate, evaluate, getArg, getArgs, getContainerType, getHeader, getIsLocked, getIsPortlet, getJSONValue, getMatchesCurrentUser, getMetadata, getNodeAspects, getNodeType, getProperty, getSiteId, getSitePreset, getUserId, setNegateOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueEvaluator

public ValueEvaluator()
Method Detail

setComparator

public void setComparator(Comparator comparator)
Comparator class

Parameters:
comparator -

setAccessor

public void setAccessor(java.lang.String accessor)
Accessor for value to compare against in dot notation format, e.g. "node.properties.cm:name"

Parameters:
accessor -

evaluate

public boolean evaluate(org.json.simple.JSONObject jsonObject)
Description copied from class: BaseEvaluator
Evaluator implementations abstract method.

Specified by:
evaluate in interface Evaluator
Specified by:
evaluate in class BaseEvaluator
Parameters:
jsonObject - The object the evaluation is for
Returns:
boolean indicating evaluator result


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.