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


Constructor Index

 o Item()

Method Index

 o buildItem(InputStream)
Restore the object from the specified input stream.
 o cloneItem(Object)
Clone this item from another one.
 o dumpItem(OutputStream)
Dumps this object into the specified output stream.
 o matchesItem(Item)
Tests if this item matches the given one.
 o matchesItem(JadaItem)
This is the JadaItem interface method used for matching.

Constructors

 o Item
 public Item()

Methods

 o 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.
 o 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.
 o cloneItem
 public abstract void cloneItem(Object source)
Clone this item from another one.

Parameters:
source - the object to clone.
 o matchesItem
 public abstract boolean matchesItem(Item match)
Tests if this item matches the given one.

Parameters:
match - the item to match.
 o 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