Class Term

java.lang.Object
org.kuali.rice.krms.api.engine.Term
All Implemented Interfaces:
Comparable<Term>

public final class Term extends Object implements Comparable<Term>
Identifies a (hopefully) resolvable Term. For resolution in the TermResolutionEngine, The appropriate TermResolver will be selected by matching the name and parameters of the Term with the output and parameter names of the TermResolver.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • Term

      public Term(String name)
      Constructor
      Parameters:
      name - of the term
    • Term

      public Term(String name, Map<String,String> parameters)
      This constructs a Term, which is a named piece of data that is usually obtainable through the TermResolutionEngine
      Parameters:
      name - the term name
      parameters - an optional map of properties that may be used to allow a single TermResolver to resolve multiple Terms
  • Method Details

    • getName

      public String getName()
      Return the name of the term
      Returns:
      name of the term
    • getProperties

      public Map<String,String> getProperties()
    • hashCode

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

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

      public int compareTo(Term o)
      Specified by:
      compareTo in interface Comparable<Term>
    • getParameters

      public Map<String,String> getParameters()
      Return an unmodifiable Map of parameters specified on this Term.
      Returns:
      an unmodifiable Map of parameters specified on this Term. Guaranteed non-null.
    • toString

      public String toString()
      Overrides:
      toString in class Object