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:
- TopicMapReferenceIF, TransactionEventListenerIF
public class TMXMLTopicMapReference
- extends AbstractOntopolyURLReference
INTERNAL: A TM/XML file topic map reference.
Field Summary |
protected boolean |
validate
|
Method Summary |
protected TopicMapImporterIF |
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, getAlwaysReindexOnLoad, getLastModifiedAt, getLastModifiedAt, getSearcher, loadTopicMap, setAlwaysReindexOnLoad, synchronizeFulltextIndex, synchronizeFulltextIndex, transactionAbort, transactionCommit |
Methods inherited from class net.ontopia.topicmaps.entry.AbstractURLTopicMapReference |
createStore, getBaseAddress, getDuplicateSuppression, getIndexDirectory, getMaintainFulltextIndexes, getReuseStore, getURL, open, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
validate
protected boolean validate
TMXMLTopicMapReference
public TMXMLTopicMapReference(java.net.URL url,
java.lang.String id,
java.lang.String title)
TMXMLTopicMapReference
public TMXMLTopicMapReference(java.net.URL url,
java.lang.String id,
java.lang.String title,
LocatorIF base_address)
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 java.io.IOException
- INTERNAL: Saves the topic map as an XTM document in the location
managed by the reference's source.
- Throws:
java.io.IOException
getImporter
protected TopicMapImporterIF getImporter()
- Specified by:
getImporter
in class AbstractOntopolyURLReference
Copyright © 2000-2012 Ontopia.