|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.entry.AbstractPathTopicMapSource net.ontopia.topicmaps.entry.AbstractOntopolyTopicMapSource net.ontopia.topicmaps.xml.XTMPathTopicMapSource
public class XTMPathTopicMapSource
INTERNAL: Source that locates XTM topic map documents in a directory on the file system.
Field Summary | |
---|---|
protected boolean |
followTopicRefs
|
protected ExternalReferenceHandlerIF |
ref_handler
|
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 | |
---|---|
XTMPathTopicMapSource()
|
|
XTMPathTopicMapSource(java.lang.String path,
java.io.FileFilter filter)
INTERNAL: Constructor that takes the file directory and a file filter. |
|
XTMPathTopicMapSource(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)
|
ExternalReferenceHandlerIF |
getExternalReferenceHandler()
PUBLIC: Gets the external reference handler. |
java.lang.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(java.io.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(java.lang.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. |
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 |
---|
protected ExternalReferenceHandlerIF ref_handler
protected boolean followTopicRefs
protected boolean validate
Constructor Detail |
---|
public XTMPathTopicMapSource()
public XTMPathTopicMapSource(java.lang.String path, java.lang.String suffix)
public XTMPathTopicMapSource(java.lang.String path, java.io.FileFilter filter)
path
- the path to search for TopicMapsfilter
- a java.io.FileFilter to filter the specified pathMethod Detail |
---|
public TopicMapReferenceIF createReference(java.net.URL url, java.lang.String id, java.lang.String title, LocatorIF base_address)
createReference
in class AbstractOntopolyTopicMapSource
public void setFollowTopicRefs(boolean followTopicRefs)
public void setExternalReferenceHandler(ExternalReferenceHandlerIF ref_handler)
public void setExternalReferenceHandlerClass(java.lang.String ref_handler)
public java.lang.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(java.io.File file) throws java.io.IOException
getWriter
in class AbstractOntopolyTopicMapSource
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |