net.ontopia.topicmaps.utils.ltm
Class LTMPathTopicMapSource

java.lang.Object
  extended by net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
      extended by net.ontopia.topicmaps.entry.AbstractOntopolyTopicMapSource
          extended by net.ontopia.topicmaps.utils.ltm.LTMPathTopicMapSource
All Implemented Interfaces:
java.io.FileFilter, TopicMapSourceIF

public class LTMPathTopicMapSource
extends AbstractOntopolyTopicMapSource

INTERNAL: Source that locates LTM topic map files in a directory on the file system.

Since:
1.1

Field Summary
 
Fields inherited from class net.ontopia.topicmaps.entry.AbstractOntopolyTopicMapSource
alwaysReindexOnLoad, indexDirectory, maintainFulltextIndexes, supportsCreate, supportsDelete
 
Fields inherited from class net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
base_address, duplicate_suppression, hidden, id, path, refmap, suffix, title
 
Constructor Summary
LTMPathTopicMapSource()
           
LTMPathTopicMapSource(java.lang.String path, java.io.FileFilter filter)
          INTERNAL: Constructor that takes the file directory and a file filter.
LTMPathTopicMapSource(java.lang.String path, java.lang.String suffix)
           
 
Method Summary
 TopicMapReferenceIF createReference(java.net.URL url, java.lang.String id, java.lang.String title, LocatorIF base)
           
 TopicMapWriterIF getWriter(java.io.File file)
          INTERNAL: Used by createTopicMap to serialize the new topic map.
 
Methods inherited from class net.ontopia.topicmaps.entry.AbstractOntopolyTopicMapSource
createTopicMap, getAlwaysReindexOnLoad, getIndexDirectory, getMaintainFulltextIndexes, getSupportsCreate, getSupportsDelete, setAlwaysReindexOnLoad, setDeleteFiles, setIndexDirectory, setMaintainFulltextIndexes, setSupportsCreate, setSupportsDelete, supportsCreate, supportsDelete
 
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
 

Constructor Detail

LTMPathTopicMapSource

public LTMPathTopicMapSource()

LTMPathTopicMapSource

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

LTMPathTopicMapSource

public LTMPathTopicMapSource(java.lang.String path,
                             java.io.FileFilter filter)
INTERNAL: Constructor that takes the file directory and a file filter.

Parameters:
path - the path to search for TopicMaps
filter - a java.io.FileFilter to filter the specified path
Since:
1.3.4
Method Detail

createReference

public TopicMapReferenceIF createReference(java.net.URL url,
                                           java.lang.String id,
                                           java.lang.String title,
                                           LocatorIF base)
Specified by:
createReference in class AbstractOntopolyTopicMapSource

getWriter

public TopicMapWriterIF getWriter(java.io.File file)
                           throws java.io.IOException
Description copied from class: AbstractOntopolyTopicMapSource
INTERNAL: Used by createTopicMap to serialize the new topic map.

Specified by:
getWriter in class AbstractOntopolyTopicMapSource
Throws:
java.io.IOException


Copyright © 2000-2012 Ontopia.