Package net.ontopia.topicmaps.entry
Class AbstractOntopolyTopicMapSource
java.lang.Object
net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
net.ontopia.topicmaps.entry.AbstractOntopolyTopicMapSource
- All Implemented Interfaces:
FileFilter,AutoCloseable,TopicMapSourceIF
- Direct Known Subclasses:
CTMPathTopicMapSource,LTMPathTopicMapSource,TMXMLPathTopicMapSource,XTMPathTopicMapSource
INTERNAL: Common abstract superclass for sources that support what
Ontopoly needs, which is full-text indexing and creation of new
topic maps.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected booleanprotected booleanprotected booleanFields inherited from class net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
base_address, duplicate_suppression, hidden, id, path, refmap, suffix, title -
Constructor Summary
ConstructorsConstructorDescriptionAbstractOntopolyTopicMapSource(String path, FileFilter filter) AbstractOntopolyTopicMapSource(String path, FileFilter filter, LocatorIF base_address) AbstractOntopolyTopicMapSource(String path, String suffix) AbstractOntopolyTopicMapSource(String path, String suffix, LocatorIF base_address) -
Method Summary
Modifier and TypeMethodDescriptionabstract TopicMapReferenceIFcreateReference(URL url, String id, String title, LocatorIF base_address) createTopicMap(String name, String baseAddress) PUBLIC: Creates a new topic map in the underlying source and returns a reference to the created topic map.booleanbooleanbooleanbooleanprotected abstract TopicMapWriterIFINTERNAL: Used by createTopicMap to serialize the new topic map.voidsetAlwaysReindexOnLoad(boolean alwaysReindexOnLoad) voidsetIndexDirectory(String indexDirectory) voidsetMaintainFulltextIndexes(boolean maintainFulltextIndexes) voidsetSupportsCreate(boolean supportsCreate) voidsetSupportsDelete(boolean supportsDelete) booleanPUBLIC: Returns true if the source supports creating new topic maps with the createTopicMap.booleanPUBLIC: Returns true if the source supports deleting topic map with the TopicMapReferenceIF.delete() method.Methods inherited from class net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
accept, close, createReference, getBase, getBaseAddress, getDuplicateSuppression, getFileFilter, getHidden, getId, getPath, getReferences, getSuffix, getTitle, refresh, refreshFromClasspath, refreshFromFilesystem, setBase, setBaseAddress, setDuplicateSuppression, setFileFilter, setHidden, setId, setPath, setSuffix, setTitle
-
Field Details
-
supportsCreate
protected boolean supportsCreate -
supportsDelete
protected boolean supportsDelete -
maintainFulltextIndexes
protected boolean maintainFulltextIndexes -
indexDirectory
-
alwaysReindexOnLoad
protected boolean alwaysReindexOnLoad
-
-
Constructor Details
-
AbstractOntopolyTopicMapSource
public AbstractOntopolyTopicMapSource() -
AbstractOntopolyTopicMapSource
-
AbstractOntopolyTopicMapSource
-
AbstractOntopolyTopicMapSource
-
AbstractOntopolyTopicMapSource
-
-
Method Details
-
getMaintainFulltextIndexes
public boolean getMaintainFulltextIndexes() -
setMaintainFulltextIndexes
public void setMaintainFulltextIndexes(boolean maintainFulltextIndexes) -
getIndexDirectory
-
setIndexDirectory
-
getAlwaysReindexOnLoad
public boolean getAlwaysReindexOnLoad() -
setAlwaysReindexOnLoad
public void setAlwaysReindexOnLoad(boolean alwaysReindexOnLoad) -
supportsCreate
public boolean supportsCreate()Description copied from interface:TopicMapSourceIFPUBLIC: Returns true if the source supports creating new topic maps with the createTopicMap.- Specified by:
supportsCreatein interfaceTopicMapSourceIF- Overrides:
supportsCreatein classAbstractPathTopicMapSource
-
getSupportsCreate
public boolean getSupportsCreate() -
setSupportsCreate
public void setSupportsCreate(boolean supportsCreate) -
supportsDelete
public boolean supportsDelete()Description copied from interface:TopicMapSourceIFPUBLIC: Returns true if the source supports deleting topic map with the TopicMapReferenceIF.delete() method.- Specified by:
supportsDeletein interfaceTopicMapSourceIF- Overrides:
supportsDeletein classAbstractPathTopicMapSource
-
getSupportsDelete
public boolean getSupportsDelete() -
setSupportsDelete
public void setSupportsDelete(boolean supportsDelete) -
createTopicMap
Description copied from interface:TopicMapSourceIFPUBLIC: Creates a new topic map in the underlying source and returns a reference to the created topic map. The method takes a name and the base address for the topic map to create.- Specified by:
createTopicMapin interfaceTopicMapSourceIF- Overrides:
createTopicMapin classAbstractPathTopicMapSource
-
createReference
public abstract TopicMapReferenceIF createReference(URL url, String id, String title, LocatorIF base_address) - Specified by:
createReferencein classAbstractPathTopicMapSource
-
getWriter
INTERNAL: Used by createTopicMap to serialize the new topic map.- Throws:
IOException
-