|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.topicmaps.xml.AbstractTopicMapExporter
net.ontopia.topicmaps.xml.XTMTopicMapExporter
net.ontopia.topicmaps.xml.XTMFragmentExporter
public class XTMFragmentExporter
PUBLIC: Exports partial topic maps using an approach inspired by the XTM Fragment Interchange 0.1 specification, but different.
WARNING: This class is not thread-safe.
Nested Class Summary | |
---|---|
static interface |
XTMFragmentExporter.LocatorHandlerIF
EXPERIMENTAL: Handler class used for processing locators. |
Field Summary | |
---|---|
static java.lang.String |
VIRTUAL_URN
|
Constructor Summary | |
---|---|
XTMFragmentExporter()
PUBLIC: Initializes the exporter. |
|
XTMFragmentExporter(java.lang.String tmid)
|
Method Summary | |
---|---|
void |
endTopicMap(org.xml.sax.DocumentHandler dh)
PUBLIC: Outputs the end tag. |
void |
exportAll(java.util.Iterator it,
org.xml.sax.DocumentHandler dh)
PUBLIC: Exports an XTM Fragment (complete with root element) to the given DocumentHandler, containing all the topics retrieved from the Iterator. |
void |
exportTopicNames(java.util.Iterator it,
org.xml.sax.DocumentHandler dh)
PUBLIC: Exports a set of topic names without any wrapping element. |
void |
exportTopics(java.util.Iterator it,
org.xml.sax.DocumentHandler dh)
PUBLIC: Exports a set of topics without any wrapping element. |
static boolean |
isVirtualReference(java.lang.String address)
|
static java.lang.String |
makeVirtualReference(TopicIF topic,
java.lang.String topicmap_id)
|
static java.lang.String |
resolveVirtualReference(java.lang.String address,
java.lang.String tmid)
|
void |
setLocatorHandler(XTMFragmentExporter.LocatorHandlerIF locator_handler)
EXPERIMENTAL: Sets the locator handler. |
void |
setUseLocalIds(boolean use_local_ids)
PUBLIC: Controls whether or not internal references of the form '#id' will be used. |
static java.lang.String |
sourceTopicMapFromVirtualReference(java.lang.String address)
|
void |
startTopicMap(org.xml.sax.DocumentHandler dh)
PUBLIC: Outputs the |
Methods inherited from class net.ontopia.topicmaps.xml.XTMTopicMapExporter |
---|
export, export, getAddIds, getExportSourceLocators, setAddIds, setExportSourceLocators |
Methods inherited from class net.ontopia.topicmaps.xml.AbstractTopicMapExporter |
---|
getElementId, mayCollide, setFilter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VIRTUAL_URN
Constructor Detail |
---|
public XTMFragmentExporter()
public XTMFragmentExporter(java.lang.String tmid)
Method Detail |
---|
public void setLocatorHandler(XTMFragmentExporter.LocatorHandlerIF locator_handler)
public void setUseLocalIds(boolean use_local_ids)
public void exportAll(java.util.Iterator it, org.xml.sax.DocumentHandler dh) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void exportTopics(java.util.Iterator it, org.xml.sax.DocumentHandler dh) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void exportTopicNames(java.util.Iterator it, org.xml.sax.DocumentHandler dh) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void startTopicMap(org.xml.sax.DocumentHandler dh) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void endTopicMap(org.xml.sax.DocumentHandler dh) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static boolean isVirtualReference(java.lang.String address)
public static java.lang.String resolveVirtualReference(java.lang.String address, java.lang.String tmid)
public static java.lang.String sourceTopicMapFromVirtualReference(java.lang.String address)
public static java.lang.String makeVirtualReference(TopicIF topic, java.lang.String topicmap_id)
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |