com.oakgrovesystems.reactor.client
Class ClientIdToLabelPathMapper
java.lang.Object
|
+--com.oakgrovesystems.reactor.client.ClientIdToLabelPathMapper
- All Implemented Interfaces:
- IdToLabelPathMapper
- public class ClientIdToLabelPathMapper
- extends java.lang.Object
- implements IdToLabelPathMapper
Method Summary |
void |
emptyCache()
|
com.oakgrovesystems.reactor.LabelPath |
getLabelPath(com.oakgrovesystems.reactor.ReactorObjectId id)
Maps a ReactorObjectId to a LabelPath |
com.oakgrovesystems.reactor.LabelPath |
getLabelPath(java.lang.String id)
Maps an id to a LabelPath |
java.util.Map |
getObjectMap()
|
void |
setObjectMap(java.util.Map objectMap)
|
void |
setUseCaching(boolean useCaching)
Sets whether or not the Mapper will use caching to improve
performance. |
boolean |
usesCaching()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientIdToLabelPathMapper
public ClientIdToLabelPathMapper()
ClientIdToLabelPathMapper
public ClientIdToLabelPathMapper(java.util.Map objectMap)
setObjectMap
public void setObjectMap(java.util.Map objectMap)
getObjectMap
public java.util.Map getObjectMap()
setUseCaching
public void setUseCaching(boolean useCaching)
- Sets whether or not the Mapper will use caching to improve
performance. While set to true:
- The cache stores the results of calls to getLabelPath().
- The getLabelPath() method first looks for the id in the cache
before attempting to construct the path.
- Parameters:
useCaching
-
usesCaching
public boolean usesCaching()
- Returns:
- A boolean indicating whether or not this mapper is using
caching to improve perfomance.
emptyCache
public void emptyCache()
getLabelPath
public com.oakgrovesystems.reactor.LabelPath getLabelPath(java.lang.String id)
throws IdentifierMappingException
- Description copied from interface:
IdToLabelPathMapper
- Maps an id to a LabelPath
- Specified by:
getLabelPath
in interface IdToLabelPathMapper
- Parameters:
id
- The string representation of the ReactorObjectId to map to a
LabelPath.
- Returns:
- A LabelPath that resolves to the object with the given id.
- Throws:
IdentifierMappingException
- If an object necessary to determine the LabelPath is unavailable
to the mapper.
getLabelPath
public com.oakgrovesystems.reactor.LabelPath getLabelPath(com.oakgrovesystems.reactor.ReactorObjectId id)
throws IdentifierMappingException
- Description copied from interface:
IdToLabelPathMapper
- Maps a ReactorObjectId to a LabelPath
- Specified by:
getLabelPath
in interface IdToLabelPathMapper
- Parameters:
id
- The ReactorObjectId to map to a LabelPath
- Returns:
- A LabelPath that resolves to the object with the given
ReactorObjectId.
- Throws:
IdentifierMappingException
- If an object necessary to determine the LabelPath is unavailable
to the mapper.
Copyright (c) 1999-2004 Oak Grove Systems. All Rights Reserved.