|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wiki.workflow.Fact
public final class Fact
Represents a contextual artifact, which can be any serializable 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
toString()
method should return a human-readable String. Facts are
immutable objects.
Constructor Summary | |
---|---|
Fact(String messageKey,
Serializable value)
Constructs a new Fact with a supplied message key and value. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Two Facts are considered equal if their message keys and value objects are equal. |
String |
getMessageKey()
Returns this Fact's name, as represented an i18n message key. |
Serializable |
getValue()
Returns this Fact's value. |
int |
hashCode()
|
String |
toString()
Returns a String representation of this Fact. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Fact(String messageKey, Serializable value)
messageKey
- the "name" of this fact, which should be an i18n message keyvalue
- the object to associate with the nameMethod Detail |
---|
public String getMessageKey()
public Serializable getValue()
public boolean equals(Object obj)
equals
in class Object
obj
- the object to test
true
if logically equal, false
if notpublic int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |