Package net.ontopia.topicmaps.xml
Class TMXMLPathTopicMapSource
java.lang.Object
net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
net.ontopia.topicmaps.entry.AbstractOntopolyTopicMapSource
net.ontopia.topicmaps.xml.TMXMLPathTopicMapSource
- All Implemented Interfaces:
FileFilter,AutoCloseable,TopicMapSourceIF
INTERNAL: Source that locates TM/XML files in a directory on the
file system.
-
Field Summary
FieldsFields inherited from class net.ontopia.topicmaps.entry.AbstractOntopolyTopicMapSource
alwaysReindexOnLoad, indexDirectory, maintainFulltextIndexes, supportsCreate, supportsDeleteFields inherited from class net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
base_address, duplicate_suppression, hidden, id, path, refmap, suffix, title -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateReference(URL url, String id, String title, LocatorIF base_address) booleanPUBLIC: Returns true if validation is on, false otherwise.protected TopicMapWriterIFINTERNAL: Used by createTopicMap to serialize the new topic map.voidsetValidation(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, setIndexDirectory, setMaintainFulltextIndexes, setSupportsCreate, setSupportsDelete, supportsCreate, supportsDeleteMethods 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
-
validate
protected boolean validate
-
-
Constructor Details
-
TMXMLPathTopicMapSource
public TMXMLPathTopicMapSource() -
TMXMLPathTopicMapSource
-
-
Method Details
-
createReference
public TopicMapReferenceIF createReference(URL url, String id, String title, LocatorIF base_address) - Specified by:
createReferencein classAbstractOntopolyTopicMapSource
-
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
INTERNAL: Used by createTopicMap to serialize the new topic map.- Specified by:
getWriterin classAbstractOntopolyTopicMapSource- Throws:
IOException
-