net.ontopia.topicmaps.xml
Class TMXMLTopicMapReference

java.lang.Object
  extended by net.ontopia.topicmaps.entry.AbstractTopicMapReference
      extended by net.ontopia.topicmaps.entry.AbstractURLTopicMapReference
          extended by net.ontopia.topicmaps.entry.AbstractOntopolyURLReference
              extended by 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
           
 
Fields inherited from class net.ontopia.topicmaps.entry.AbstractOntopolyURLReference
alwaysReindexOnLoad, ftmanager
 
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
TMXMLTopicMapReference(java.net.URL url, java.lang.String id, java.lang.String title)
           
TMXMLTopicMapReference(java.net.URL url, java.lang.String id, java.lang.String title, LocatorIF base_address)
           
 
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
 

Field Detail

validate

protected boolean validate
Constructor Detail

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)
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 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.