|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.entry.URLTopicMapSource
public class URLTopicMapSource
INTERNAL: TopicMapSourceIF that can reference individual topic map documents by their URL address. The properties id, title, url, and syntax are the most commonly used. The syntaxes XTM, HyTM, and LTM are currently supported.
| Field Summary | |
|---|---|
protected LocatorIF |
base_address
|
protected boolean |
duplicate_suppression
|
protected boolean |
hidden
|
protected String |
id
|
protected ExternalReferenceHandlerIF |
ref_handler
|
protected String |
refid
|
protected Collection<TopicMapReferenceIF> |
reflist
|
protected String |
syntax
|
protected String |
title
|
protected String |
url
|
protected boolean |
validate
|
| Constructor Summary | |
|---|---|
URLTopicMapSource()
|
|
URLTopicMapSource(String url)
|
|
| Method Summary | |
|---|---|
TopicMapReferenceIF |
createTopicMap(String name,
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. |
String |
getBaseAddress()
INTERNAL: Gets the base address of the topic maps retrieved from the source. |
boolean |
getDuplicateSuppression()
INTERNAL: Gets the duplicate suppression flag. |
ExternalReferenceHandlerIF |
getExternalReferenceHandler()
INTERNAL: Gets the external reference handler. |
boolean |
getHidden()
|
String |
getId()
PUBLIC: Gets the id of the source. |
String |
getReferenceId()
INTERNAL: Gets the id of the topic map reference for this topic map source. |
Collection<TopicMapReferenceIF> |
getReferences()
PUBLIC: Returns an unmodifiable collection of TopicMapReferenceIFs found by the topic map source. |
String |
getSyntax()
INTERNAL: Returns the syntax of the document. |
String |
getTitle()
PUBLIC: Gets the title of the source. |
String |
getUrl()
INTERNAL: Gets the URL of the source topic map. |
boolean |
getValidation()
INTERNAL: Returns true if validation is on, false otherwise. |
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(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 |
setExternalReferenceHandler(ExternalReferenceHandlerIF ref_handler)
INTERNAL: Sets the external reference handler. |
void |
setHidden(boolean hidden)
|
void |
setId(String id)
PUBLIC: Sets the id of the source. |
void |
setReferenceId(String refid)
INTERNAL: Sets the id of the topic map reference for this topic map source. |
void |
setSyntax(String syntax)
INTERNAL: Specifies the syntax of the document. |
void |
setTitle(String title)
PUBLIC: Sets the title of the source. |
void |
setUrl(String url)
INTERNAL: Sets the URL of the source topic map. |
void |
setValidation(boolean validate)
INTERNAL: Turn validation of XTM documents according to DTD on or off. |
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String id
protected String refid
protected String title
protected String url
protected String syntax
protected boolean hidden
protected LocatorIF base_address
protected boolean duplicate_suppression
protected boolean validate
protected ExternalReferenceHandlerIF ref_handler
protected Collection<TopicMapReferenceIF> reflist
| Constructor Detail |
|---|
public URLTopicMapSource()
public URLTopicMapSource(String url)
| Method Detail |
|---|
public String getId()
TopicMapSourceIF
getId in interface TopicMapSourceIFpublic void setId(String id)
TopicMapSourceIFUnsupportedOperationException if it does not support
setting the id.
setId in interface TopicMapSourceIFpublic String getReferenceId()
public void setReferenceId(String refid)
public String getTitle()
TopicMapSourceIF
getTitle in interface TopicMapSourceIFpublic void setTitle(String title)
TopicMapSourceIF
setTitle in interface TopicMapSourceIFpublic String getSyntax()
public void setSyntax(String syntax)
public String getUrl()
public void setUrl(String url)
public LocatorIF getBase()
public void setBase(LocatorIF base_address)
public String getBaseAddress()
public void setBaseAddress(String base_address)
public boolean getDuplicateSuppression()
public void setDuplicateSuppression(boolean duplicate_suppression)
public void setValidation(boolean validate)
validate - Will validate if true, will not if false.public boolean getValidation()
public void setExternalReferenceHandler(ExternalReferenceHandlerIF ref_handler)
public ExternalReferenceHandlerIF getExternalReferenceHandler()
public Collection<TopicMapReferenceIF> getReferences()
TopicMapSourceIFTopicMapReferenceIFs found by the topic map source.
getReferences in interface TopicMapSourceIFpublic void refresh()
TopicMapSourceIF
refresh in interface TopicMapSourceIFpublic boolean supportsCreate()
TopicMapSourceIF
supportsCreate in interface TopicMapSourceIFpublic boolean supportsDelete()
TopicMapSourceIF
supportsDelete in interface TopicMapSourceIF
public TopicMapReferenceIF createTopicMap(String name,
String baseAddress)
TopicMapSourceIF
createTopicMap in interface TopicMapSourceIFpublic boolean getHidden()
public void setHidden(boolean hidden)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||