Package net.ontopia.topicmaps.xml
Class XTMTopicMapReference
java.lang.Object
net.ontopia.topicmaps.entry.AbstractTopicMapReference
net.ontopia.topicmaps.entry.AbstractURLTopicMapReference
net.ontopia.topicmaps.entry.AbstractOntopolyURLReference
net.ontopia.topicmaps.xml.XTMTopicMapReference
- All Implemented Interfaces:
AutoCloseable,TopicMapReferenceIF,TransactionEventListenerIF
INTERNAL: An XTM document topic map reference.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected ExternalReferenceHandlerIFprotected booleanFields inherited from class net.ontopia.topicmaps.entry.AbstractOntopolyURLReference
alwaysReindexOnLoad, ftmanagersFields inherited from class net.ontopia.topicmaps.entry.AbstractURLTopicMapReference
base_address, duplicate_suppression, indexDirectory, maintainFulltextIndexes, reuse_store, store, urlFields inherited from class net.ontopia.topicmaps.entry.AbstractTopicMapReference
deleted, id, isopen, listeners, source, title, topic_listeners -
Constructor Summary
ConstructorsConstructorDescriptionXTMTopicMapReference(URL url, String id, String title) XTMTopicMapReference(URL url, String id, String title, LocatorIF base_address) -
Method Summary
Modifier and TypeMethodDescriptionPUBLIC: Gets the external reference handler.protected TopicMapReaderIFbooleanPUBLIC: Returns true if validation is on, false otherwise.voidsave()INTERNAL: Saves the topic map as an XTM document in the location managed by the reference's source.voidPUBLIC: Sets the external reference handler.voidsetFollowTopicRefs(boolean followTopicRefs) PUBLIC: If set to false topicRef elements pointing to external documents will not be traversed.voidsetValidation(boolean validate) PUBLIC: Turn validation of XTM documents according to DTD on or off.Methods inherited from class net.ontopia.topicmaps.entry.AbstractOntopolyURLReference
close, delete, deleteFullTextIndex, getAlwaysReindexOnLoad, getLastModifiedAt, getLastModifiedAt, loadTopicMap, open, reindexFulltextIndex, setAlwaysReindexOnLoad, synchronizeFulltextIndex, transactionAbort, transactionCommitMethods inherited from class net.ontopia.topicmaps.entry.AbstractURLTopicMapReference
createStore, getBaseAddress, getDuplicateSuppression, getIndexDirectory, getMaintainFulltextIndexes, getReuseStore, getURL, setBaseAddress, setDuplicateSuppression, setIndexDirectory, setMaintainFulltextIndexes, setReuseStore, setTopicListeners, toStringMethods inherited from class net.ontopia.topicmaps.entry.AbstractTopicMapReference
addTopicListener, clear, getId, getSource, getTitle, getTopicListeners, isDeleted, isOpen, makeListenerArray, registerTopicListeners, removeTopicListener, setId, setSource, setTitle, storeClosed
-
Field Details
-
ref_handler
-
followTopicRefs
protected boolean followTopicRefs -
validate
protected boolean validate
-
-
Constructor Details
-
XTMTopicMapReference
-
XTMTopicMapReference
-
-
Method Details
-
setFollowTopicRefs
public void setFollowTopicRefs(boolean followTopicRefs) PUBLIC: If set to false topicRef elements pointing to external documents will not be traversed. The default is that those the documents pointed to by those elements will be loaded (as per the XTM specification).- Since:
- 3.2
-
setExternalReferenceHandler
PUBLIC: Sets the external reference handler. -
getExternalReferenceHandler
PUBLIC: Gets the external reference handler. The reference handler will receive notifications on references to external topics and topic maps. -
setValidation
public void setValidation(boolean validate) PUBLIC: Turn validation of XTM documents according to DTD on or off. The validation checks if the documents read follow the DTD, and will abort import if they do not.- Parameters:
validate- Will validate if true, will not if false.- Since:
- 2.0
-
getValidation
public boolean getValidation()PUBLIC: Returns true if validation is on, false otherwise.- Since:
- 2.0
-
save
INTERNAL: Saves the topic map as an XTM document in the location managed by the reference's source.- Throws:
IOException
-
getImporter
- Specified by:
getImporterin classAbstractOntopolyURLReference- Throws:
IOException
-