org.kuali.rice.krms.api.engine
Class Term

java.lang.Object
  extended by 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 Summary
Term(String name)
          Constructor
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
 
Method Summary
 int compareTo(Term o)
           
 boolean equals(Object obj)
           
 String getName()
          Return the name of the term
 Map<String,String> getParameters()
          Return an unmodifiable Map of parameters specified on this Term.
 Map<String,String> getProperties()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

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


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.