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