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, net.ontopia.topicmaps.impl.utils.TransactionEventListenerIF

public class TMXMLTopicMapReference
extends AbstractOntopolyURLReference

INTERNAL: A TM/XML file topic map reference.


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
 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, getSearcher, setAlwaysReindexOnLoad, 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, toString
 
Methods inherited from class net.ontopia.topicmaps.entry.AbstractTopicMapReference
addTopicListener, clear, getId, getSource, getTitle, isDeleted, isOpen, registerTopicListeners, removeTopicListener, setId, setSource, setTitle, storeClosed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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


Copyright © 2000-2009 Ontopia.