|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.entry.AbstractPathTopicMapSource net.ontopia.topicmaps.entry.AbstractOntopolyTopicMapSource
public abstract class AbstractOntopolyTopicMapSource
INTERNAL: Common abstract superclass for sources that support what Ontopoly needs, which is full-text indexing and creation of new topic maps.
Field Summary | |
---|---|
protected boolean |
alwaysReindexOnLoad
|
protected java.lang.String |
indexDirectory
|
protected boolean |
maintainFulltextIndexes
|
protected boolean |
supportsCreate
|
protected boolean |
supportsDelete
|
Fields inherited from class net.ontopia.topicmaps.entry.AbstractPathTopicMapSource |
---|
base_address, duplicate_suppression, hidden, id, path, refmap, suffix, title |
Constructor Summary | |
---|---|
AbstractOntopolyTopicMapSource()
|
|
AbstractOntopolyTopicMapSource(java.lang.String path,
java.io.FileFilter filter)
|
|
AbstractOntopolyTopicMapSource(java.lang.String path,
java.io.FileFilter filter,
LocatorIF base_address)
|
|
AbstractOntopolyTopicMapSource(java.lang.String path,
java.lang.String suffix)
|
|
AbstractOntopolyTopicMapSource(java.lang.String path,
java.lang.String suffix,
LocatorIF base_address)
|
Method Summary | |
---|---|
abstract TopicMapReferenceIF |
createReference(java.net.URL url,
java.lang.String id,
java.lang.String title,
LocatorIF base_address)
|
TopicMapReferenceIF |
createTopicMap(java.lang.String name,
java.lang.String baseAddress)
PUBLIC: Creates a new topic map in the underlying source and returns a reference to the created topic map. |
boolean |
getAlwaysReindexOnLoad()
|
java.lang.String |
getIndexDirectory()
|
boolean |
getMaintainFulltextIndexes()
|
boolean |
getSupportsCreate()
|
boolean |
getSupportsDelete()
|
protected abstract TopicMapWriterIF |
getWriter(java.io.File file)
INTERNAL: Used by createTopicMap to serialize the new topic map. |
void |
setAlwaysReindexOnLoad(boolean alwaysReindexOnLoad)
|
void |
setDeleteFiles(boolean supportsCreate)
Deprecated. Replaced by setSupportsCreate |
void |
setIndexDirectory(java.lang.String indexDirectory)
|
void |
setMaintainFulltextIndexes(boolean maintainFulltextIndexes)
|
void |
setSupportsCreate(boolean supportsCreate)
|
void |
setSupportsDelete(boolean supportsDelete)
|
boolean |
supportsCreate()
PUBLIC: Returns true if the source supports creating new topic maps with the createTopicMap. |
boolean |
supportsDelete()
PUBLIC: Returns true if the source supports deleting topic map with the TopicMapReferenceIF.delete() method. |
Methods inherited from class net.ontopia.topicmaps.entry.AbstractPathTopicMapSource |
---|
accept, createReference, getBase, getBaseAddress, getDuplicateSuppression, getFileFilter, getHidden, getId, getPath, getReferences, getSuffix, getTitle, refresh, refreshFromClasspath, refreshFromFilesystem, setBase, setBaseAddress, setDuplicateSuppression, setFileFilter, setHidden, setId, setPath, setSuffix, setTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean supportsCreate
protected boolean supportsDelete
protected boolean maintainFulltextIndexes
protected java.lang.String indexDirectory
protected boolean alwaysReindexOnLoad
Constructor Detail |
---|
public AbstractOntopolyTopicMapSource()
public AbstractOntopolyTopicMapSource(java.lang.String path, java.lang.String suffix)
public AbstractOntopolyTopicMapSource(java.lang.String path, java.io.FileFilter filter)
public AbstractOntopolyTopicMapSource(java.lang.String path, java.lang.String suffix, LocatorIF base_address)
public AbstractOntopolyTopicMapSource(java.lang.String path, java.io.FileFilter filter, LocatorIF base_address)
Method Detail |
---|
public boolean getMaintainFulltextIndexes()
public void setMaintainFulltextIndexes(boolean maintainFulltextIndexes)
public java.lang.String getIndexDirectory()
public void setIndexDirectory(java.lang.String indexDirectory)
public boolean getAlwaysReindexOnLoad()
public void setAlwaysReindexOnLoad(boolean alwaysReindexOnLoad)
public boolean supportsCreate()
TopicMapSourceIF
supportsCreate
in interface TopicMapSourceIF
supportsCreate
in class AbstractPathTopicMapSource
public boolean getSupportsCreate()
public void setSupportsCreate(boolean supportsCreate)
public void setDeleteFiles(boolean supportsCreate)
public boolean supportsDelete()
TopicMapSourceIF
supportsDelete
in interface TopicMapSourceIF
supportsDelete
in class AbstractPathTopicMapSource
public boolean getSupportsDelete()
public void setSupportsDelete(boolean supportsDelete)
public TopicMapReferenceIF createTopicMap(java.lang.String name, java.lang.String baseAddress)
TopicMapSourceIF
createTopicMap
in interface TopicMapSourceIF
createTopicMap
in class AbstractPathTopicMapSource
public abstract TopicMapReferenceIF createReference(java.net.URL url, java.lang.String id, java.lang.String title, LocatorIF base_address)
createReference
in class AbstractPathTopicMapSource
protected abstract TopicMapWriterIF getWriter(java.io.File file) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |