net.ontopia.topicmaps.entry
Class AbstractOntopolyTopicMapSource

java.lang.Object
  extended by net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
      extended by net.ontopia.topicmaps.entry.AbstractOntopolyTopicMapSource
All Implemented Interfaces:
java.io.FileFilter, TopicMapSourceIF
Direct Known Subclasses:
TMXMLPathTopicMapSource, XTMPathTopicMapSource

public abstract class AbstractOntopolyTopicMapSource
extends AbstractPathTopicMapSource

INTERNAL: Common abstract superclass for sources that support what Ontopoly needs, which is full-text indexing and creation of new topic maps.


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()
           
 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, getBase, getBaseAddress, getDuplicateSuppression, getFileFilter, getHidden, getId, getPath, getReferences, getSuffix, getTitle, refresh, setBase, setBaseAddress, setDuplicateSuppression, setFileFilter, setHidden, setId, setPath, setSuffix, setTitle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOntopolyTopicMapSource

public AbstractOntopolyTopicMapSource()

AbstractOntopolyTopicMapSource

public AbstractOntopolyTopicMapSource(java.lang.String path,
                                      java.lang.String suffix)

AbstractOntopolyTopicMapSource

public AbstractOntopolyTopicMapSource(java.lang.String path,
                                      java.io.FileFilter filter)

AbstractOntopolyTopicMapSource

public AbstractOntopolyTopicMapSource(java.lang.String path,
                                      java.lang.String suffix,
                                      LocatorIF base_address)

AbstractOntopolyTopicMapSource

public AbstractOntopolyTopicMapSource(java.lang.String path,
                                      java.io.FileFilter filter,
                                      LocatorIF base_address)
Method Detail

getMaintainFulltextIndexes

public boolean getMaintainFulltextIndexes()

setMaintainFulltextIndexes

public void setMaintainFulltextIndexes(boolean maintainFulltextIndexes)

getIndexDirectory

public java.lang.String getIndexDirectory()

setIndexDirectory

public void setIndexDirectory(java.lang.String indexDirectory)

getAlwaysReindexOnLoad

public boolean getAlwaysReindexOnLoad()

setAlwaysReindexOnLoad

public void setAlwaysReindexOnLoad(boolean alwaysReindexOnLoad)

supportsCreate

public boolean supportsCreate()
Description copied from interface: TopicMapSourceIF
PUBLIC: Returns true if the source supports creating new topic maps with the createTopicMap.

Specified by:
supportsCreate in interface TopicMapSourceIF
Overrides:
supportsCreate in class AbstractPathTopicMapSource

getSupportsCreate

public boolean getSupportsCreate()

setSupportsCreate

public void setSupportsCreate(boolean supportsCreate)

setDeleteFiles

public void setDeleteFiles(boolean supportsCreate)
Deprecated. Replaced by setSupportsCreate


supportsDelete

public boolean supportsDelete()
Description copied from interface: TopicMapSourceIF
PUBLIC: Returns true if the source supports deleting topic map with the TopicMapReferenceIF.delete() method.

Specified by:
supportsDelete in interface TopicMapSourceIF
Overrides:
supportsDelete in class AbstractPathTopicMapSource

getSupportsDelete

public boolean getSupportsDelete()

setSupportsDelete

public void setSupportsDelete(boolean supportsDelete)

createTopicMap

public TopicMapReferenceIF createTopicMap(java.lang.String name,
                                          java.lang.String baseAddress)
Description copied from interface: TopicMapSourceIF
PUBLIC: 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:
createTopicMap in interface TopicMapSourceIF
Overrides:
createTopicMap in class AbstractPathTopicMapSource

createReference

public abstract TopicMapReferenceIF createReference(java.net.URL url,
                                                    java.lang.String id,
                                                    java.lang.String title,
                                                    LocatorIF base_address)


Copyright © 2000-2009 Ontopia.