public class XTMPathTopicMapSource extends AbstractOntopolyTopicMapSource
Modifier and Type | Field and Description |
---|---|
protected boolean |
followTopicRefs |
protected ExternalReferenceHandlerIF |
ref_handler |
protected boolean |
validate |
alwaysReindexOnLoad, indexDirectory, maintainFulltextIndexes, supportsCreate, supportsDelete
base_address, duplicate_suppression, hidden, id, path, refmap, suffix, title
Constructor and Description |
---|
XTMPathTopicMapSource() |
XTMPathTopicMapSource(String path,
FileFilter filter)
INTERNAL: Constructor that takes the file directory and a file filter.
|
XTMPathTopicMapSource(String path,
String suffix) |
Modifier and Type | Method and Description |
---|---|
TopicMapReferenceIF |
createReference(URL url,
String id,
String title,
LocatorIF base_address) |
ExternalReferenceHandlerIF |
getExternalReferenceHandler()
PUBLIC: Gets the external reference handler.
|
String |
getExternalReferenceHandlerClass()
EXPERIMENTAL: Gets the name of the external reference handler class.
|
boolean |
getValidation()
PUBLIC: Returns true if validation is on, false otherwise.
|
protected TopicMapWriterIF |
getWriter(File file)
INTERNAL: Used by createTopicMap to serialize the new topic map.
|
void |
setExternalReferenceHandler(ExternalReferenceHandlerIF ref_handler)
PUBLIC: Sets the external reference handler.
|
void |
setExternalReferenceHandlerClass(String ref_handler)
EXPERIMENTAL: Sets the name of the external reference handler
class.
|
void |
setFollowTopicRefs(boolean followTopicRefs)
PUBLIC: If set to false topicRef elements pointing to external
documents will not be traversed.
|
void |
setValidation(boolean validate)
PUBLIC: Turn validation of XTM documents according to DTD on or
off.
|
createTopicMap, getAlwaysReindexOnLoad, getIndexDirectory, getMaintainFulltextIndexes, getSupportsCreate, getSupportsDelete, setAlwaysReindexOnLoad, setIndexDirectory, setMaintainFulltextIndexes, setSupportsCreate, setSupportsDelete, supportsCreate, supportsDelete
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
protected ExternalReferenceHandlerIF ref_handler
protected boolean followTopicRefs
protected boolean validate
public XTMPathTopicMapSource()
public XTMPathTopicMapSource(String path, FileFilter filter)
path
- the path to search for TopicMapsfilter
- a java.io.FileFilter to filter the specified pathpublic TopicMapReferenceIF createReference(URL url, String id, String title, LocatorIF base_address)
createReference
in class AbstractOntopolyTopicMapSource
public void setFollowTopicRefs(boolean followTopicRefs)
public void setExternalReferenceHandler(ExternalReferenceHandlerIF ref_handler)
public void setExternalReferenceHandlerClass(String ref_handler)
public String getExternalReferenceHandlerClass()
public ExternalReferenceHandlerIF getExternalReferenceHandler()
public void setValidation(boolean validate)
validate
- Will validate if true, will not if false.public boolean getValidation()
protected TopicMapWriterIF getWriter(File file) throws IOException
getWriter
in class AbstractOntopolyTopicMapSource
IOException