Class TranslationCondition
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.translation.TranslationCondition
-
public class TranslationCondition extends Object
MVEL condition of translation rule.- Author:
- K. Benedyczak
-
-
Constructor Summary
Constructors Constructor Description TranslationCondition()
Creates an always true conditionTranslationCondition(String condition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
boolean
evaluate(Object input)
boolean
evaluate(Object input, org.apache.logging.log4j.Logger log)
String
getCondition()
int
hashCode()
void
setCondition(String condition)
-
-
-
Constructor Detail
-
TranslationCondition
public TranslationCondition(String condition)
-
TranslationCondition
public TranslationCondition()
Creates an always true condition
-
-
Method Detail
-
evaluate
public boolean evaluate(Object input) throws EngineException
- Throws:
EngineException
-
evaluate
public boolean evaluate(Object input, org.apache.logging.log4j.Logger log) throws EngineException
- Throws:
EngineException
-
getCondition
public String getCondition()
-
setCondition
public void setCondition(String condition)
-
-