| java.lang.Object com.ecyrd.jspwiki.workflow.Fact
Fact | final public class Fact (Code) | | Represents a contextual artifact, which can be any Object, useful for making
a Decision. Facts are key-value pairs, where the key is a String (message
key) and the value is an arbitrary Object. Generally, the supplied object's
Fact.toString() method should return a human-readable String. Facts are
immutable objects.
author: Andrew Jaquith since: 2.5 |
Constructor Summary | |
public | Fact(String messageKey, Object value) Constructs a new Fact with a supplied message key and value. |
Method Summary | |
public boolean | equals(Object obj) Two Facts are considered equal if their message keys and value objects are equal. | public String | getMessageKey() Returns this Fact's name, as represented an i18n message key. | public Object | getValue() Returns this Fact's value. | public int | hashCode() | public String | toString() Returns a String representation of this Fact. |
Fact | public Fact(String messageKey, Object value)(Code) | | Constructs a new Fact with a supplied message key and value.
Parameters: messageKey - the "name" of this fact, which should be an i18n message key Parameters: value - the object to associate with the name |
equals | public boolean equals(Object obj)(Code) | | Two Facts are considered equal if their message keys and value objects are equal.
Parameters: obj - the object to test true if logically equal, false if not |
getMessageKey | public String getMessageKey()(Code) | | Returns this Fact's name, as represented an i18n message key.
the message key |
getValue | public Object getValue()(Code) | | Returns this Fact's value.
the value object |
hashCode | public int hashCode()(Code) | | |
toString | public String toString()(Code) | | Returns a String representation of this Fact.
the representation |
|
|