public abstract class AbstractURLTopicMapReference extends AbstractTopicMapReference
| Modifier and Type | Field and Description |
|---|---|
protected LocatorIF |
base_address |
protected boolean |
duplicate_suppression |
protected String |
indexDirectory |
protected boolean |
maintainFulltextIndexes |
protected boolean |
reuse_store |
protected TopicMapStoreIF |
store |
protected URL |
url |
deleted, id, isopen, listeners, source, title, topic_listeners| Constructor and Description |
|---|
AbstractURLTopicMapReference(String id,
String title,
URL url,
LocatorIF base_address) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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(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) |
String |
toString() |
addTopicListener, clear, getId, getSource, getTitle, getTopicListeners, isDeleted, isOpen, makeListenerArray, registerTopicListeners, removeTopicListener, setId, setSource, setTitle, storeClosedprotected URL url
protected LocatorIF base_address
protected boolean duplicate_suppression
protected boolean reuse_store
protected TopicMapStoreIF store
protected boolean maintainFulltextIndexes
protected String indexDirectory
public 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()
TopicMapReferenceIFopen in interface TopicMapReferenceIFopen in class AbstractTopicMapReferencepublic void close()
TopicMapReferenceIFclose in interface AutoCloseableclose in interface TopicMapReferenceIFclose in class AbstractTopicMapReferencepublic void delete()
delete in interface TopicMapReferenceIFdelete in class AbstractTopicMapReferencepublic TopicMapStoreIF createStore(boolean readonly) throws IOException
TopicMapReferenceIFcreateStore in interface TopicMapReferenceIFcreateStore in class AbstractTopicMapReferenceIOExceptionprotected abstract TopicMapIF loadTopicMap(boolean readonly) throws IOException
IOExceptionpublic boolean getMaintainFulltextIndexes()
public void setMaintainFulltextIndexes(boolean maintainFulltextIndexes)
maintainFulltextIndexes - True if fulltext indexes are maintained.public String getIndexDirectory()
public void setIndexDirectory(String indexDirectory)
protected void setTopicListeners(TopicMapListenerIF[] topic_listeners)
setTopicListeners in class AbstractTopicMapReference