net.ontopia.topicmaps.entry
Class AbstractOntopolyURLReference
java.lang.Object
net.ontopia.topicmaps.entry.AbstractTopicMapReference
net.ontopia.topicmaps.entry.AbstractURLTopicMapReference
net.ontopia.topicmaps.entry.AbstractOntopolyURLReference
- All Implemented Interfaces:
- TopicMapReferenceIF, net.ontopia.topicmaps.impl.utils.TransactionEventListenerIF
- Direct Known Subclasses:
- TMXMLTopicMapReference, XTMTopicMapReference
public abstract class AbstractOntopolyURLReference
- extends AbstractURLTopicMapReference
- implements net.ontopia.topicmaps.impl.utils.TransactionEventListenerIF
INTERNAL: Common abstract superclass for references from sources
that support what Ontopoly needs.
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 |
AbstractOntopolyURLReference
public AbstractOntopolyURLReference(java.net.URL url,
java.lang.String id,
java.lang.String title,
LocatorIF base)
getAlwaysReindexOnLoad
public boolean getAlwaysReindexOnLoad()
setAlwaysReindexOnLoad
public void setAlwaysReindexOnLoad(boolean alwaysReindexOnLoad)
synchronizeFulltextIndex
public boolean synchronizeFulltextIndex()
throws java.io.IOException
- INTERNAL: Synchronizes the underlying fulltext index with the latest
changes in the topic map.
- Returns:
- True if index was modified.
- Throws:
java.io.IOException
getSearcher
public net.ontopia.infoset.fulltext.core.SearcherIF getSearcher()
close
public void close()
- Description copied from interface:
TopicMapReferenceIF
- PUBLIC: Closes all open stores and the reference itself. Note
that topic map stores created through this reference are closed
and dereferenced when the reference is closed. The reference
can be reopened after it has been closed.
- Specified by:
close
in interface TopicMapReferenceIF
- Overrides:
close
in class AbstractURLTopicMapReference
delete
public void delete()
- Description copied from class:
AbstractURLTopicMapReference
- INTERNAL: Deletes the topic map pointed to. The reference is closed
before the topic map is deleted. Note that only URIs pointing to
through files can actually be deleted, i.e. "file:" URLs.
- Specified by:
delete
in interface TopicMapReferenceIF
- Overrides:
delete
in class AbstractURLTopicMapReference
transactionCommit
public void transactionCommit(net.ontopia.topicmaps.impl.utils.TopicMapTransactionIF transaction)
- Specified by:
transactionCommit
in interface net.ontopia.topicmaps.impl.utils.TransactionEventListenerIF
transactionAbort
public void transactionAbort(net.ontopia.topicmaps.impl.utils.TopicMapTransactionIF transaction)
- Specified by:
transactionAbort
in interface net.ontopia.topicmaps.impl.utils.TransactionEventListenerIF
Copyright © 2000-2009 Ontopia.