|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.entry.AbstractPathTopicMapSource
public abstract class AbstractPathTopicMapSource
INTERNAL: Abstract class implementing TopicMapSourceIF; locates topic map file references from a given directory on the local file system. Only files that match the given suffix are used.
| Constructor Summary | |
|---|---|
AbstractPathTopicMapSource()
|
|
AbstractPathTopicMapSource(java.lang.String path,
java.io.FileFilter filter)
|
|
AbstractPathTopicMapSource(java.lang.String path,
java.io.FileFilter filter,
LocatorIF base_address)
|
|
AbstractPathTopicMapSource(java.lang.String path,
java.lang.String suffix)
|
|
AbstractPathTopicMapSource(java.lang.String path,
java.lang.String suffix,
LocatorIF base_address)
|
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File file)
INTERNAL: A file filter method implementation. |
TopicMapReferenceIF |
createTopicMap(java.lang.String name,
java.lang.String baseAddress)
PUBLIC: Creates a new topic map in the underlying source and returns a reference to the created topic map. |
LocatorIF |
getBase()
INTERNAL: Gets the base locator of the topic maps retrieved from the source. |
java.lang.String |
getBaseAddress()
INTERNAL: Gets the base address of the topic maps retrieved from the source. |
boolean |
getDuplicateSuppression()
INTERNAL: Gets the duplicate suppression flag. |
java.io.FileFilter |
getFileFilter()
INTERNAL: Returns the FileFilter used to in the specified path. |
boolean |
getHidden()
|
java.lang.String |
getId()
PUBLIC: Gets the id of the source. |
java.lang.String |
getPath()
INTERNAL: Gets the path in which the source locates its references. |
java.util.Collection<TopicMapReferenceIF> |
getReferences()
PUBLIC: Returns an unmodifiable collection of TopicMapReferenceIFs found by the topic map source. |
java.lang.String |
getSuffix()
INTERNAL: Gets the file suffix that should be used for filtering. |
java.lang.String |
getTitle()
PUBLIC: Gets the title of the source. |
void |
refresh()
PUBLIC: Refreshes the collection of references. |
void |
setBase(LocatorIF base_address)
INTERNAL: Sets the base locator of the topic maps retrieved from the source. |
void |
setBaseAddress(java.lang.String base_address)
INTERNAL: Sets the base address of the topic maps retrieved from the source. |
void |
setDuplicateSuppression(boolean duplicate_suppression)
INTERNAL: Sets the duplicate suppression flag. |
void |
setFileFilter(java.io.FileFilter filter)
INTERNAL: Sets a FileFilter used to filter the files in the specified path. |
void |
setHidden(boolean hidden)
|
void |
setId(java.lang.String id)
PUBLIC: Sets the id of the source. |
void |
setPath(java.lang.String path)
INTERNAL: Sets the path in which the source locates its references. |
void |
setSuffix(java.lang.String suffix)
INTERNAL: Sets the file suffix that should be used for filtering. |
void |
setTitle(java.lang.String title)
PUBLIC: Sets the title of the source. |
boolean |
supportsCreate()
PUBLIC: Returns true if the source supports creating new topic maps with the createTopicMap. |
boolean |
supportsDelete()
PUBLIC: Returns true if the source supports deleting topic map with the TopicMapReferenceIF.delete() method. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractPathTopicMapSource()
public AbstractPathTopicMapSource(java.lang.String path,
java.lang.String suffix)
public AbstractPathTopicMapSource(java.lang.String path,
java.io.FileFilter filter)
public AbstractPathTopicMapSource(java.lang.String path,
java.lang.String suffix,
LocatorIF base_address)
public AbstractPathTopicMapSource(java.lang.String path,
java.io.FileFilter filter,
LocatorIF base_address)
| Method Detail |
|---|
public java.lang.String getId()
TopicMapSourceIF
getId in interface TopicMapSourceIFpublic void setId(java.lang.String id)
TopicMapSourceIFUnsupportedOperationException if it does not support
setting the id.
setId in interface TopicMapSourceIFpublic java.lang.String getTitle()
TopicMapSourceIF
getTitle in interface TopicMapSourceIFpublic void setTitle(java.lang.String title)
TopicMapSourceIF
setTitle in interface TopicMapSourceIFpublic java.lang.String getPath()
public void setPath(java.lang.String path)
public java.lang.String getSuffix()
public void setSuffix(java.lang.String suffix)
public LocatorIF getBase()
public void setBase(LocatorIF base_address)
public java.lang.String getBaseAddress()
public void setBaseAddress(java.lang.String base_address)
public boolean getDuplicateSuppression()
public void setDuplicateSuppression(boolean duplicate_suppression)
public java.util.Collection<TopicMapReferenceIF> getReferences()
TopicMapSourceIFTopicMapReferenceIFs found by the topic map source.
getReferences in interface TopicMapSourceIFpublic boolean supportsCreate()
TopicMapSourceIF
supportsCreate in interface TopicMapSourceIFpublic boolean supportsDelete()
TopicMapSourceIF
supportsDelete in interface TopicMapSourceIF
public TopicMapReferenceIF createTopicMap(java.lang.String name,
java.lang.String baseAddress)
TopicMapSourceIF
createTopicMap in interface TopicMapSourceIFpublic void refresh()
TopicMapSourceIF
refresh in interface TopicMapSourceIFpublic java.io.FileFilter getFileFilter()
public void setFileFilter(java.io.FileFilter filter)
filter - a java.io.FileFilter object for filtering the filespublic boolean accept(java.io.File file)
accept in interface java.io.FileFilterpublic boolean getHidden()
public void setHidden(boolean hidden)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||