Package net.ontopia.topicmaps.xml
Class TMXMLTopicMapReference
java.lang.Object
net.ontopia.topicmaps.entry.AbstractTopicMapReference
net.ontopia.topicmaps.entry.AbstractURLTopicMapReference
net.ontopia.topicmaps.entry.AbstractOntopolyURLReference
net.ontopia.topicmaps.xml.TMXMLTopicMapReference
- All Implemented Interfaces:
AutoCloseable,TopicMapReferenceIF,TransactionEventListenerIF
INTERNAL: A TM/XML file topic map reference.
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionTMXMLTopicMapReference(URL url, String id, String title) TMXMLTopicMapReference(URL url, String id, String title, LocatorIF base_address) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.voidsetValidation(boolean validate) PUBLIC: Turn validation of TM/XML files according to the RELAX-NG schema 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
-
validate
protected boolean validate
-
-
Constructor Details
-
TMXMLTopicMapReference
-
TMXMLTopicMapReference
-
-
Method Details
-
setValidation
public void setValidation(boolean validate) PUBLIC: Turn validation of TM/XML files according to the RELAX-NG schema on or off. The validation checks if the documents read follow the schema, and will abort import if they do not.- Parameters:
validate- Will validate if true, will not if false.
-
getValidation
public boolean getValidation()PUBLIC: Returns true if validation is on, false otherwise. -
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
-