|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectequip.runtime.Object
equip.runtime.ValueBase
equip.data.ItemMutator
An object representating a 'mutation', that is a programmatic modification to a data item. This mutator class takes the current item value as argument and returns a 'new' item to replace it (which may be the original one with some fields/internal state changed).
Create an application-specific subclass which includes any
required information as fields and implements apply(equip.data.ItemData) to perform the desired transformation.
| Constructor Summary | |
ItemMutator()
Default no-arg constructor |
|
| Method Summary | |
boolean |
_equals_helper(ItemMutator c)
Internal IDL-generated equality test helper |
boolean |
_matches_helper(ItemMutator c)
Internal IDL-generated match test helper |
abstract ItemData |
apply(ItemData item)
The application-defined mutation function. |
boolean |
equals(java.lang.Object c)
Standard IDL-generated equality test. |
java.lang.String |
getModuleName()
IDL-generated helper routine to get module name (currently unimplemented). |
boolean |
matches(java.lang.Object c)
Standard IDL-generated template match test. |
void |
readObject(ObjectInputStream in)
Internal IDL-generated serialisation helper. |
void |
writeObject(ObjectOutputStream out)
Internal IDL-generated serialisation helper. |
| Methods inherited from class equip.runtime.ValueBase |
_equals_helper, _matches_helper, clone |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ItemMutator()
| Method Detail |
public abstract ItemData apply(ItemData item)
item - The previous item value.
public java.lang.String getModuleName()
getModuleName in class Objectpublic boolean equals(java.lang.Object c)
equals in class ValueBasec - The object to be compared against this.
cpublic boolean _equals_helper(ItemMutator c)
public boolean matches(java.lang.Object c)
matches in class ValueBasec - The object to be checked against this template.
this (as a template) matches the argumentpublic boolean _matches_helper(ItemMutator c)
public void writeObject(ObjectOutputStream out)
throws java.io.IOException
ObjectInputStream and ObjectOutputStream only.
writeObject in class ValueBasejava.io.IOException
public void readObject(ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException,
java.lang.InstantiationException
ObjectInputStream and ObjectOutputStream only.
readObject in class ValueBasejava.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||