Class JustificationEntry

java.lang.Object
com.aquima.interactions.rule.graph.JustificationInfo
com.aquima.interactions.rule.graph.JustificationEntry

public class JustificationEntry extends JustificationInfo
This class holds a single justification text for an attribute, fomat and ID combination.
Since:
5.1
Author:
O. Kerpershoek
  • Field Details

    • DEFAULT_ID

      public static final String DEFAULT_ID
      This member holds the default ID to be used when no ID was specified.
      See Also:
  • Constructor Details

    • JustificationEntry

      protected JustificationEntry(String attribute, String id, String textId)
  • Method Details

    • getId

      protected String getId()
    • getAttribute

      protected String getAttribute()
    • getTextId

      protected String getTextId()
    • isApplicableForAttribute

      protected boolean isApplicableForAttribute(String attribute)
    • isApplicableForId

      protected boolean isApplicableForId(String id)
    • getJustificationTextId

      public String getJustificationTextId(String attribute, String id)
      Description copied from class: JustificationInfo
      This method returns the justification text id for the specified parameters.
      Specified by:
      getJustificationTextId in class JustificationInfo
      Parameters:
      attribute - The attribute for which the justification text is requested.
      id - The id of the justification text that is requested.
      Returns:
      the justification text for the specified parameters.
    • optimize

      public JustificationInfo optimize()
      Description copied from class: JustificationInfo
      This method should try to optimize the internal structure and return an optimized version of this info object.
      Specified by:
      optimize in class JustificationInfo
      Returns:
      An optimized version of this info object.
    • hashCode

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

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