All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class macondo.mistero.SpaceName

macondo.mistero.SpaceName

public class SpaceName
The name of a Space object.


Constructor Index

 o SpaceName()
Default constructor.

Method Index

 o buildItem(InputStream)
JadaItem interface method.
 o cloneItem(Object)
JadaItem interface method.
 o dumpItem(OutputStream)
JadaItem interface method.
 o items()
Returns the items of this name as an array of String.
 o join(String)
Joins to the space specified from the given name items.
 o lastItem()
Returns the last item of this name.
 o leave()
Moves to the encompassing tuple space.
 o leaveAll()
Moves to the root tuple space.
 o matchesItem(JadaItem)
JadaItem interface method.
 o size()
Returns the current number of items of this SpaceName.
 o startsWith(SpaceName)
Tests if this name starts with the specified prexif.
 o toString()
Returns a string representation of this SpaceName object.

Constructors

 o SpaceName
 public SpaceName()
Default constructor.

Methods

 o join
 public synchronized void join(String items)
Joins to the space specified from the given name items.

Parameters:
items - the name items.
See Also:
join, leave, leaveAll
 o leave
 public synchronized void leave()
Moves to the encompassing tuple space.

See Also:
leave, join, leaveAll
 o leaveAll
 public synchronized void leaveAll()
Moves to the root tuple space.

See Also:
leaveAll, join, leave
 o toString
 public synchronized String toString()
Returns a string representation of this SpaceName object.

Returns:
a string representation of this SpaceName object.
 o size
 public int size()
Returns the current number of items of this SpaceName.

Returns:
the current number of items in this SpaceName.
 o startsWith
 public synchronized boolean startsWith(SpaceName prefix)
Tests if this name starts with the specified prexif.

Parameters:
prefix - the prefix.
Returns:
true if the string sequence represented by the argument is a prefix of the string sequence represented by this name; false otherwise.
 o lastItem
 public synchronized String lastItem()
Returns the last item of this name.

Returns:
the last item of this name.
 o items
 public synchronized String[] items()
Returns the items of this name as an array of String.

Returns:
the name items as an array of String.
 o dumpItem
 public void dumpItem(OutputStream os) throws ItemNotStreamableException, IOException
JadaItem interface method. Dumps this object to the specified stream.

Parameters:
os - the output stream.
Throws: ItemNotStreamableException
thrown if the object is not streamable.
Throws: IOException
thrown if an I/O error occurs.
 o buildItem
 public void buildItem(InputStream is) throws ItemNotStreamableException, IOException
JadaItem interface method. Builds a SpaceName object from a stream.

Parameters:
is - the input stream.
Throws: ItemNotStreamableException
thrown if the object is not streamable.
Throws: IOException
thrown if an I/O error occurs.
 o cloneItem
 public void cloneItem(Object source)
JadaItem interface method. Clone this object from another one.

Parameters:
source - the object to clone from.
 o matchesItem
 public boolean matchesItem(JadaItem match)
JadaItem interface method. Tests if this object matches the given one.

Parameters:
match - the object to tests.
Returns:
true if the two object match, false otherwise.

All Packages  Class Hierarchy  This Package  Previous  Next  Index