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 Details

    • TranslationCondition

      public TranslationCondition(String condition)
    • TranslationCondition

      public TranslationCondition()
      Creates an always true condition
  • Method Details

    • evaluate

      public boolean evaluate(Object input) throws pl.edu.icm.unity.base.exceptions.EngineException
      Throws:
      pl.edu.icm.unity.base.exceptions.EngineException
    • evaluate

      public boolean evaluate(Object input, org.apache.logging.log4j.Logger log) throws pl.edu.icm.unity.base.exceptions.EngineException
      Throws:
      pl.edu.icm.unity.base.exceptions.EngineException
    • getCondition

      public String getCondition()
    • setCondition

      public void setCondition(String condition)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object