|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.entry.AbstractTopicMapReference net.ontopia.topicmaps.entry.AbstractURLTopicMapReference
public abstract class AbstractURLTopicMapReference
INTERNAL: An abstract topic map reference class that retrieves topic maps referenced through URLs. Subclasses should implement the loadTopicMap method.
Field Summary | |
---|---|
protected LocatorIF |
base_address
|
protected boolean |
duplicate_suppression
|
protected java.lang.String |
indexDirectory
|
protected boolean |
maintainFulltextIndexes
|
protected boolean |
reuse_store
|
protected TopicMapStoreIF |
store
|
protected java.net.URL |
url
|
Fields inherited from class net.ontopia.topicmaps.entry.AbstractTopicMapReference |
---|
deleted, id, isopen, listeners, source, title, topic_listeners |
Constructor Summary | |
---|---|
AbstractURLTopicMapReference(java.lang.String id,
java.lang.String title,
java.net.URL url,
LocatorIF base_address)
|
Method Summary | |
---|---|
void |
close()
PUBLIC: Closes all open stores and the reference itself. |
TopicMapStoreIF |
createStore(boolean readonly)
PUBLIC: Creates a topic map store that lets you access the referenced topic map. |
void |
delete()
INTERNAL: Deletes the topic map pointed to. |
LocatorIF |
getBaseAddress()
INTERNAL: Returns the base address locator to be used when loading the topic map. |
boolean |
getDuplicateSuppression()
INTERNAL: Gets the duplicate suppression flag. |
java.lang.String |
getIndexDirectory()
|
boolean |
getMaintainFulltextIndexes()
INTERNAL: Returns true if stores will keep underlying fulltext indexes up-to-date. |
boolean |
getReuseStore()
INTERNAL: Flag that indicates whether the same store should be returned by the createStore(boolean) method on every. |
java.net.URL |
getURL()
INTERNAL: Returns the URL of the topic map pointed at. |
protected abstract TopicMapIF |
loadTopicMap(boolean readonly)
|
void |
open()
PUBLIC: Opens the reference. |
void |
setBaseAddress(LocatorIF base_address)
INTERNAL: Sets the base address locator to be used when loading the topic map. |
void |
setDuplicateSuppression(boolean duplicate_suppression)
INTERNAL: Sets the duplicate suppression flag. |
void |
setIndexDirectory(java.lang.String indexDirectory)
|
void |
setMaintainFulltextIndexes(boolean maintainFulltextIndexes)
INTERNAL: Specifies whether underlying fulltext indexes are to be kept up-to-date or not. |
void |
setReuseStore(boolean reuse_store)
INTERNAL: Sets the reuse_store flag. |
protected void |
setTopicListeners(TopicMapListenerIF[] topic_listeners)
|
java.lang.String |
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 |
---|
protected java.net.URL url
protected LocatorIF base_address
protected boolean duplicate_suppression
protected boolean reuse_store
protected TopicMapStoreIF store
protected boolean maintainFulltextIndexes
protected java.lang.String indexDirectory
Constructor Detail |
---|
public AbstractURLTopicMapReference(java.lang.String id, java.lang.String title, java.net.URL url, LocatorIF base_address)
Method Detail |
---|
public java.net.URL getURL()
public LocatorIF getBaseAddress()
public void setBaseAddress(LocatorIF base_address)
public boolean getDuplicateSuppression()
public void setDuplicateSuppression(boolean duplicate_suppression)
public boolean getReuseStore()
public void setReuseStore(boolean reuse_store)
public void open()
TopicMapReferenceIF
open
in interface TopicMapReferenceIF
open
in class AbstractTopicMapReference
public void close()
TopicMapReferenceIF
close
in interface TopicMapReferenceIF
close
in class AbstractTopicMapReference
public void delete()
delete
in interface TopicMapReferenceIF
delete
in class AbstractTopicMapReference
public TopicMapStoreIF createStore(boolean readonly) throws java.io.IOException
TopicMapReferenceIF
createStore
in interface TopicMapReferenceIF
createStore
in class AbstractTopicMapReference
java.io.IOException
protected abstract TopicMapIF loadTopicMap(boolean readonly) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean getMaintainFulltextIndexes()
public void setMaintainFulltextIndexes(boolean maintainFulltextIndexes)
maintainFulltextIndexes
- True if fulltext indexes are maintained.public java.lang.String getIndexDirectory()
public void setIndexDirectory(java.lang.String indexDirectory)
protected void setTopicListeners(TopicMapListenerIF[] topic_listeners)
setTopicListeners
in class AbstractTopicMapReference
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |