net.ontopia.topicmaps.xml
Class TMXMLPathTopicMapSource

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

public class TMXMLPathTopicMapSource
extends AbstractOntopolyTopicMapSource

INTERNAL: Source that locates TM/XML files in a directory on the file system.


Field Summary
protected  boolean validate
           
 
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
TMXMLPathTopicMapSource()
           
TMXMLPathTopicMapSource(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_address)
           
 boolean getValidation()
          PUBLIC: Returns true if validation is on, false otherwise.
protected  TopicMapWriterIF getWriter(java.io.File file)
          INTERNAL: Used by createTopicMap to serialize the new topic map.
 void setValidation(boolean validate)
          PUBLIC: Turn validation of TM/XML documents according to RELAX-NG schema on or off.
 
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
 

Field Detail

validate

protected boolean validate
Constructor Detail

TMXMLPathTopicMapSource

public TMXMLPathTopicMapSource()

TMXMLPathTopicMapSource

public TMXMLPathTopicMapSource(java.lang.String path,
                               java.lang.String suffix)
Method Detail

createReference

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

setValidation

public void setValidation(boolean validate)
PUBLIC: Turn validation of TM/XML documents according to RELAX-NG schema on or off. The validation checks if the documents read follow the schema, and will abort import if they do not.

Parameters:
validate - Will validate if true, will not if false.

getValidation

public boolean getValidation()
PUBLIC: Returns true if validation is on, false otherwise.


getWriter

protected TopicMapWriterIF getWriter(java.io.File file)
                              throws java.io.IOException
INTERNAL: Used by createTopicMap to serialize the new topic map.

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


Copyright © 2000-2012 Ontopia.