|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tm4j.topicmap.utils.SimpleIDMappingStrategy
Field Summary | |
protected java.util.HashSet |
m_mapped
|
Constructor Summary | |
SimpleIDMappingStrategy(TopicMap dest)
|
Method Summary | |
java.lang.String |
generateID(java.lang.String sourceID,
TopicMap destinationTM)
This method is invoked to generate an ID for the destination object of a copy. |
java.lang.String |
getSourceID(java.lang.String destID)
Returns the ID of the source TopicMapObject which was mapped to destID by the generateID() method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.HashSet m_mapped
Constructor Detail |
public SimpleIDMappingStrategy(TopicMap dest)
Method Detail |
public java.lang.String generateID(java.lang.String sourceID, TopicMap destinationTM) throws TopicMapProcessingException
IDMappingStrategy
generateID
in interface IDMappingStrategy
sourceID
- The ID of the source object being copied.destinationTM
- The TopicMap into which the destination object will be copied.
TopicMapProcessingException
- if the mapping cannot be achieved for some reason.public java.lang.String getSourceID(java.lang.String destID)
IDMappingStrategy
destID
by the generateID()
method.
getSourceID
in interface IDMappingStrategy
destID
- The ID of the destination object of the copy
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |