All Packages Class Hierarchy This Package Previous Next Index
Class macondo.mistero.Item
macondo.mistero.Item
- public abstract class Item
Any class used in a tuple must extend this class. Note that
- a class that extends Item
must have a default constructor
- a class that extends Item
must be public
-
Item()
-
-
buildItem(InputStream)
- Restore the object from the specified input stream.
-
cloneItem(Object)
- Clone this item from another one.
-
dumpItem(OutputStream)
- Dumps this object into the specified output stream.
-
matchesItem(Item)
- Tests if this item matches the given one.
-
matchesItem(JadaItem)
- This is the JadaItem interface method used for matching.
Item
public Item()
dumpItem
public abstract void dumpItem(OutputStream os) throws ItemNotStreamableException, IOException
- Dumps this object into the specified output stream.
- Parameters:
- os - the output stream.
- Throws: ItemNotStreamableException
- thrown if the item
is not streamable.
- Throws: IOException
- thrown if any I/O
error occurs.
buildItem
public abstract void buildItem(InputStream is) throws ItemNotStreamableException, IOException
- Restore the object from the specified input stream.
- Parameters:
- is - the input stream.
- Throws: ItemNotStreamableException
- thrown if the item
is not streamable.
- Throws: IOException
- thrown if any I/O
error occurs.
cloneItem
public abstract void cloneItem(Object source)
- Clone this item from another one.
- Parameters:
- source - the object to clone.
matchesItem
public abstract boolean matchesItem(Item match)
- Tests if this item matches the given one.
- Parameters:
- match - the item to match.
matchesItem
public final boolean matchesItem(JadaItem match)
- This is the JadaItem interface method used for matching. Since
it requires a JadaItem argument it needs to be hidden from
the Mistero API. So it simply checks if the argument is an
Item
object and then it invokes the Mistero
matchesItem()
methods.
- Parameters:
- match - the item to match.
All Packages Class Hierarchy This Package Previous Next Index