|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.m2mi.ExportMap
public abstract class ExportMap
Class ExportMap is the abstract base class for a mapping that stores exported objects.
Note: Class ExportMap is not multiple thread safe.
Constructor Summary | |
---|---|
ExportMap(M2MIMessagePrefix theMessagePrefixBag)
Construct a new, empty export map. |
Method Summary | |
---|---|
protected void |
export(Object key,
Object obj)
Export the given object with the given key in this export map. |
protected boolean |
isExported(Object key)
Determine if any object(s) are exported with the given key in this export map. |
protected boolean |
isExported(Object key,
Object obj)
Determine if the given object is exported with the given key in this export map. |
protected Iterator |
iterator(Object key)
Obtain an iterator for visiting the objects exported with the given key in this export map. |
void |
unexport(Object obj)
Unexport the given object in this export map. |
protected void |
unexport(Object key,
Object obj)
Unexport the given object from the given key in this export map. |
protected void |
unexportKey(Object key)
Unexport all objects from the given key in this export map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExportMap(M2MIMessagePrefix theMessagePrefixBag)
theMessagePrefixBag
- M2MI message prefix bag.
NullPointerException
- (unchecked exception) Thrown if theMessagePrefixBag is null.Method Detail |
---|
public void unexport(Object obj)
obj
- Object to unexport.
NullPointerException
- (unchecked exception) Thrown if obj is null.
ExportException
- (unchecked exception) Thrown if there was a problem unexporting the
object.protected void export(Object key, Object obj)
key
- Key.obj
- Object to export.
NullPointerException
- (unchecked exception) Thrown if key is null or obj
is null.
ExportException
- (unchecked exception) Thrown if there was a problem exporting the
object.protected void unexport(Object key, Object obj)
key
- Key.obj
- Object to unexport.
NullPointerException
- (unchecked exception) Thrown if key is null or obj
is null.
ExportException
- (unchecked exception) Thrown if there was a problem unexporting the
object.protected void unexportKey(Object key)
key
- Key.
NullPointerException
- (unchecked exception) Thrown if key is null.
ExportException
- (unchecked exception) Thrown if there was a problem unexporting the
objects.protected boolean isExported(Object key)
key
- Key.
NullPointerException
- (unchecked exception) Thrown if key is null.protected boolean isExported(Object key, Object obj)
key
- Key.obj
- Object.
NullPointerException
- (unchecked exception) Thrown if key is null or obj
is null.protected Iterator iterator(Object key)
key
- Key.
NullPointerException
- (unchecked exception) Thrown if key is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |