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
public class TMXMLTopicMapReference extends AbstractOntopolyURLReference
INTERNAL: A TM/XML file topic map reference.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
validate
-
Fields inherited from class net.ontopia.topicmaps.entry.AbstractOntopolyURLReference
alwaysReindexOnLoad, ftmanagers
-
Fields inherited from class net.ontopia.topicmaps.entry.AbstractURLTopicMapReference
base_address, duplicate_suppression, indexDirectory, maintainFulltextIndexes, reuse_store, store, url
-
Fields inherited from class net.ontopia.topicmaps.entry.AbstractTopicMapReference
deleted, id, isopen, listeners, source, title, topic_listeners
-
-
Constructor Summary
Constructors Constructor Description TMXMLTopicMapReference(URL url, String id, String title)
TMXMLTopicMapReference(URL url, String id, String title, LocatorIF base_address)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TopicMapReaderIF
getImporter()
boolean
getValidation()
PUBLIC: Returns true if validation is on, false otherwise.void
save()
INTERNAL: Saves the topic map as an XTM document in the location managed by the reference's source.void
setValidation(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, transactionCommit
-
Methods inherited from class net.ontopia.topicmaps.entry.AbstractURLTopicMapReference
createStore, getBaseAddress, getDuplicateSuppression, getIndexDirectory, getMaintainFulltextIndexes, getReuseStore, getURL, setBaseAddress, setDuplicateSuppression, setIndexDirectory, setMaintainFulltextIndexes, setReuseStore, setTopicListeners, toString
-
Methods inherited from class net.ontopia.topicmaps.entry.AbstractTopicMapReference
addTopicListener, clear, getId, getSource, getTitle, getTopicListeners, isDeleted, isOpen, makeListenerArray, registerTopicListeners, removeTopicListener, setId, setSource, setTitle, storeClosed
-
-
-
-
Method Detail
-
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
public void save() throws IOException
INTERNAL: Saves the topic map as an XTM document in the location managed by the reference's source.- Throws:
IOException
-
getImporter
protected TopicMapReaderIF getImporter() throws IOException
- Specified by:
getImporter
in classAbstractOntopolyURLReference
- Throws:
IOException
-
-