|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A modifiable map of Link
s to services on the network.
Method Summary | |
void |
clear()
Removes all mapping from this Place . |
LinkItem |
put(int keyValue,
LinkItem value)
Convenience method that associates the specified value with the Integer key whose int value equals the
int specified keyValue . |
java.lang.Object |
put(LinkItem value)
Associates the specified value in this Place with a
new unique key selected by this method. |
LinkItem |
put(java.lang.Object key,
LinkItem value)
Associates the specified value with the specified key in this Place . |
void |
putAll(Place map)
Copies all of the mappings from the specified Place to
this Place . |
LinkItem |
remove(java.lang.Object key)
Removes the mapping for this key from this Place if
present. |
LinkItem |
updateAttributes(java.lang.Object key,
java.util.Set attributes)
Associates the specified attributes Set with the
Link that is associated with the specified key in this
Place . |
Methods inherited from interface com.artima.place.DynamicPlace |
addPlaceChangeListener, removePlaceChangeListener |
Methods inherited from interface com.artima.place.Place |
containsAllKeys, containsAllLinkItems, containsKey, containsKey, containsLinkItem, get, get, isEmpty, keyIterator, keySetSize, linkItemIterator, size |
Method Detail |
public void clear() throws java.rmi.RemoteException
Place
.java.rmi.RemoteException
- if a network problem prevents this method
from fulfilling its contractual obligationspublic LinkItem put(java.lang.Object key, LinkItem value) throws java.rmi.RemoteException
Place
.key
- the key with which to associate the specified
LinkItem
value in this Place
.value
- the LinkItem
value to associate with the
specified key in this Place
.LinkItem
with which the key was previously
associated, or null
if there was no mapping for the
key.java.rmi.RemoteException
- if a network problem prevents this method
from fulfilling its contractual obligationspublic LinkItem put(int keyValue, LinkItem value) throws java.rmi.RemoteException
Integer
key whose int
value equals the
int
specified keyValue
.key
- the key with which (in Integer
form) to
associate the specified LinkItem
value in this
Place
.value
- the LinkItem
value to associate with the
specified key in this Place
.LinkItem
with which the key was previously
associated, or null
if there was no mapping for the
key.java.rmi.RemoteException
- if a network problem prevents this method
from fulfilling its contractual obligationspublic java.lang.Object put(LinkItem value) throws java.rmi.RemoteException
Place
with a
new unique key selected by this method.value
- the LinkItem
value to associate with a
randomly selected new key in this Place
.LinkItem
was associated.java.rmi.RemoteException
- if a network problem prevents this method
from fulfilling its contractual obligationspublic LinkItem updateAttributes(java.lang.Object key, java.util.Set attributes) throws java.rmi.RemoteException
Set
with the
Link
that is associated with the specified key in this
Place
.key
- the key with which to associate the specified
LinkItem
value in this Place
.attributes
- the attributes Set
value to associate with the
Link
contained in the LinkItem
specified
by the passed key
in this Place
.LinkItem
.java.rmi.RemoteException
- if a network problem prevents this method
from fulfilling its contractual obligationsNoSuchElementException
- if the key is not associated with any
LinkItem
in this ModifiablePlace
public void putAll(Place map) throws java.rmi.RemoteException
Place
to
this Place
.map
- the Place
from which to copy mappings to
this Place
.java.rmi.RemoteException
- if a network problem prevents this method
from fulfilling its contractual obligations.public LinkItem remove(java.lang.Object key) throws java.rmi.RemoteException
Place
if
present.key
- the key whose mapping is to be removed from this
Place
.LinkItem
, or null
if
there was no mapping for this key.java.rmi.RemoteException
- if a network problem prevents this method
from fulfilling its contractual obligations
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |