Class TranslationCondition


  • public class TranslationCondition
    extends java.lang.Object
    MVEL condition of translation rule.
    Author:
    K. Benedyczak
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TranslationCondition

        public TranslationCondition​(java.lang.String condition)
      • TranslationCondition

        public TranslationCondition()
        Creates an always true 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object