|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.topicmaps.xml.AbstractTopicMapExporter
public abstract class AbstractTopicMapExporter
INTERNAL: Abstract class providing common operations used by XML exporters.
Constructor Summary | |
---|---|
AbstractTopicMapExporter()
|
Method Summary | |
---|---|
java.lang.String |
getElementId(TMObjectIF tmobject)
INTERNAL: Method used to extract the XTM element id from a topic map object when a source locator relative to the topic map base address exists. |
static boolean |
mayCollide(java.lang.String id)
INTERNAL: Used to find out whether this ID may collide with IDs produced from object IDs. |
void |
setFilter(DeciderIF filter)
PUBLIC: Sets the filter that decides which topic map constructs are accepted in the exported TM/XML. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTopicMapExporter()
Method Detail |
---|
public void setFilter(DeciderIF filter)
filter
- Places constraints on individual topicmap constructs.public java.lang.String getElementId(TMObjectIF tmobject)
This method is critical because we want to preserve the connection between subject indicators used to reify local objects, and at the same time we wish to keep the symbolic IDs often used in XTM and LTM files.
When setting the IDs of elements we set the ID to "fragment" if the object has a source locator of the form "base#fragment", where base is the base address of the topic map store. If no such source locator is found, the ID becomes "id" + object ID.
See the getSubjectIndicatorRef method in XTMTopicMapExporter to see how subject indicators are exported. Synchronization of these two methods is vital.
public static boolean mayCollide(java.lang.String id)
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |