public class URLTopicMapSource extends Object implements TopicMapSourceIF
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
URLTopicMapSource() |
URLTopicMapSource(String url) |
Modifier and Type | Method and Description |
---|---|
void |
close()
PUBLIC: Closes the source by releasing references it holds to e.g.
|
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
TopicMapReferenceIF s 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.
|
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
public URLTopicMapSource()
public URLTopicMapSource(String url)
public String getId()
TopicMapSourceIF
getId
in interface TopicMapSourceIF
public void setId(String id)
TopicMapSourceIF
UnsupportedOperationException
if it does not support
setting the id.setId
in interface TopicMapSourceIF
public String getReferenceId()
public void setReferenceId(String refid)
public String getTitle()
TopicMapSourceIF
getTitle
in interface TopicMapSourceIF
public void setTitle(String title)
TopicMapSourceIF
setTitle
in interface TopicMapSourceIF
public 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()
TopicMapSourceIF
TopicMapReferenceIF
s found by the topic map source.getReferences
in interface TopicMapSourceIF
public void refresh()
TopicMapSourceIF
refresh
in interface TopicMapSourceIF
public void close()
TopicMapSourceIF
close
in interface AutoCloseable
close
in interface TopicMapSourceIF
public boolean supportsCreate()
TopicMapSourceIF
supportsCreate
in interface TopicMapSourceIF
public boolean supportsDelete()
TopicMapSourceIF
supportsDelete
in interface TopicMapSourceIF
public TopicMapReferenceIF createTopicMap(String name, String baseAddress)
TopicMapSourceIF
createTopicMap
in interface TopicMapSourceIF
public boolean getHidden()
public void setHidden(boolean hidden)