Class Rule

java.lang.Object
com.jedox.palojlib.main.Rule
All Implemented Interfaces:
IRule

public class Rule extends Object implements IRule
  • Constructor Details

    • Rule

      protected Rule(int identifier, String definition, String externalIdentifier, String comment, long timestamp, boolean active, double position, String query, int templateRuleIdentifier)
  • Method Details

    • getIdentifier

      public int getIdentifier()
      Description copied from interface: IRule
      get the identifier for this rule
      Specified by:
      getIdentifier in interface IRule
      Returns:
      id
    • getDefinition

      public String getDefinition()
      Description copied from interface: IRule
      get the rule content or definition
      Specified by:
      getDefinition in interface IRule
      Returns:
      rule definition
    • getExternalIdentifier

      public String getExternalIdentifier()
      Description copied from interface: IRule
      get the external identifier of the rule
      Specified by:
      getExternalIdentifier in interface IRule
      Returns:
      optional id
    • getTimestamp

      public long getTimestamp()
      Description copied from interface: IRule
      get the timestamp of the rule, when it was created
      Specified by:
      getTimestamp in interface IRule
      Returns:
      long value of the timestamp
    • getComment

      public String getComment()
      Description copied from interface: IRule
      optional comment
      Specified by:
      getComment in interface IRule
      Returns:
      comment of the rule
    • isActive

      public boolean isActive()
      Description copied from interface: IRule
      get the boolean value whether a rule is active
      Specified by:
      isActive in interface IRule
      Returns:
      true if active, false otherwise
    • getPosition

      public double getPosition()
      Description copied from interface: IRule
      get the position for this rule
      Specified by:
      getPosition in interface IRule
      Returns:
      position
    • getQuery

      public String getQuery()
      Description copied from interface: IRule
      get the query for this rule, empty for regular rules.
      Specified by:
      getQuery in interface IRule
      Returns:
      query
    • getTemplateRuleIdentifier

      public int getTemplateRuleIdentifier()
      Description copied from interface: IRule
      get the template rule identifier for this rule, -1 for regular rules.
      Specified by:
      getTemplateRuleIdentifier in interface IRule
      Returns:
      template rule id