|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This strategy interface is used by the TopicMapCopier object to determine how to map an ID value for a source object to the ID value to be assigned to the copied object. The object implementing this interface is also responsible for keeping track of the relationship between source and destination objects.
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. |
Method Detail |
public java.lang.String generateID(java.lang.String sourceID, TopicMap destinationTM) throws TopicMapProcessingException
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)
destID
by the generateID()
method.
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 |