public class WebServiceTopicMap extends TopicMap
| Modifier and Type | Class and Description |
|---|---|
private static class |
WebServiceTopicMap.Request |
| Modifier and Type | Field and Description |
|---|---|
private java.util.ArrayList<TopicMapListener> |
disabledListeners |
private static int |
REQ_TOPIC |
private static int |
REQ_TYPES |
private java.util.HashMap<WebServiceTopicMap.Request,WebServiceTopicMap.Request> |
requestLocks |
private java.util.Map<java.lang.String,WebServiceTopic> |
topicBNIndex |
private java.util.ArrayList<TopicMapListener> |
topicMapListeners |
private java.util.Map<java.lang.String,WebServiceTopic> |
topicSIIndex |
private java.util.Map<java.lang.String,WebServiceTopic> |
topicSLIndex |
private TopicMapServiceStub |
webService |
consistencyCheck, consistencyCheckWhenXTMImport, EDITTIME_SI, isReadOnly, logger, parentTopicMap| Constructor and Description |
|---|
WebServiceTopicMap() |
WebServiceTopicMap(java.lang.String serviceEndPoint) |
WebServiceTopicMap(TopicMapServiceStub service) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTopicMapListener(TopicMapListener listener)
Adds a topic map listener.
|
void |
clearTopicMap()
Completely clears the topic map.
|
void |
clearTopicMapIndexes()
If the topic map implementation keeps indexes or caches of topics, calling
this method will clear such data structures and cause further methods to
retrieve data directly from the original data source.
|
void |
close()
Close the topic map.
|
Association |
copyAssociationIn(Association a)
Copies an association of a different topic map in this topic map.
|
void |
copyTopicAssociationsIn(Topic t)
Copies all associations of a topic of a different topic map in this topic
map using copyAssociationIn.
|
Topic |
copyTopicIn(Topic t,
boolean deep)
Copies a topic of different topic map in this topic map.
|
Association |
createAssociation(Topic type)
Creates a new association of the given type without any members.
|
Topic |
createTopic()
Creates a new topic without base name, subject identifier, data or any associations.
|
Topic |
createTopic(java.lang.String id)
Creates a new topic without base name, subject identifier, data or any associations.
|
void |
disableAllListeners() |
void |
enableAllListeners() |
private void |
endRequest(WebServiceTopicMap.Request request) |
java.util.Iterator<Association> |
getAssociations()
Returns all associations in the topic map.
|
java.util.Collection<Association> |
getAssociationsOfType(Topic type)
Returns all associations in the topic map that are of the given type.
|
int |
getNumAssociations()
Returns the number of associations in topic map.
|
int |
getNumTopics()
Returns the number of topics in topic map.
|
TopicMapStatData |
getStatistics(TopicMapStatOptions options) |
Topic |
getTopic(Locator si)
Gets a topic with subject identifier.
|
Topic |
getTopic(Locator si,
boolean full) |
Topic |
getTopic(java.lang.String si,
boolean full) |
Topic |
getTopicBySubjectLocator(Locator sl)
Gets a topic with subject locator.
|
java.util.List<TopicMapListener> |
getTopicMapListeners()
Gets all topic map listeners.
|
java.util.Iterator<Topic> |
getTopics()
Gets all topics in the topic map.
|
Topic[] |
getTopics(java.lang.String[] sis)
Gets the topics whose subject identifiers are given in the array.
|
Topic[] |
getTopics(java.lang.String[] sis,
boolean full) |
java.util.Collection<Topic> |
getTopicsOfType(Topic type)
Gets all topics in the topic map that are of the given type.
|
Topic |
getTopicWithBaseName(java.lang.String name)
Gets a topic with topic base name.
|
TopicMapServiceStub |
getWebService() |
private void |
indexTopic(TopicMapServiceStub.WSTopic wstopic,
WebServiceTopic t) |
boolean |
isConnected()
Checks if this topic map is connected to the service providing the topic map.
|
boolean |
isReadOnly()
Checks if the topic map is in a read only state.
|
boolean |
isTopicMapChanged()
Checks if the topic map has been changed since the last call to resetTopicMapChanged.
|
void |
removeTopicMapListener(TopicMapListener listener)
Removes a topic map listener.
|
boolean |
resetTopicMapChanged() |
java.util.Collection<Topic> |
search(java.lang.String query,
TopicMapSearchOptions options)
Searches the topic map for the given string.
|
void |
setTrackDependent(boolean v)
NOTE: The two trackDependent methods are mostly deprecated.
|
void |
setWebService(java.lang.String service) |
void |
setWebService(TopicMapServiceStub service) |
private WebServiceTopicMap.Request |
startRequest(int type,
java.lang.String si) |
boolean |
trackingDependent() |
addTopicMapListeners, checkAssociationConsistency, checkAssociationConsistency, copyTopicCollectionIn, createLocator, createLocator, escapeXML, exportJTM, exportJTM, exportJTM, exportJTM, exportLTM, exportLTM, exportLTM, exportLTM, exportTopicMap, exportTopicMap, exportXTM, exportXTM, exportXTM, exportXTM, exportXTM10, exportXTM10, exportXTM10, exportXTM20, exportXTM20, forceStop, getConsistencyCheck, getLogger, getMergingTopics, getParentTopicMap, getRootTopicMap, getTopic, getTopicBySubjectLocator, getTopics, getTopicsOfType, hlog, importJTM, importJTM, importJTM, importJTM, importJTM, importJTM, importLTM, importLTM, importLTM, importLTM, importLTM, importLTM, importTopicMap, importTopicMap, importTopicMap, importXTM, importXTM, importXTM, importXTM, importXTM, log, log, log, makeJTMString, makeJTMTopicId, makeLTMString, makeLTMTopicId, makeSubjectIndicator, makeSubjectIndicatorAsLocator, mergeIn, mergeIn, setConsistencyCheck, setLogger, setLogTitle, setParentTopicMap, setProgress, setProgressMax, setReadOnlyprivate java.util.ArrayList<TopicMapListener> topicMapListeners
private java.util.ArrayList<TopicMapListener> disabledListeners
private java.util.Map<java.lang.String,WebServiceTopic> topicSIIndex
private java.util.Map<java.lang.String,WebServiceTopic> topicSLIndex
private java.util.Map<java.lang.String,WebServiceTopic> topicBNIndex
private TopicMapServiceStub webService
private final java.util.HashMap<WebServiceTopicMap.Request,WebServiceTopicMap.Request> requestLocks
private static final int REQ_TYPES
private static final int REQ_TOPIC
public WebServiceTopicMap()
public WebServiceTopicMap(java.lang.String serviceEndPoint)
public WebServiceTopicMap(TopicMapServiceStub service)
private WebServiceTopicMap.Request startRequest(int type, java.lang.String si)
private void endRequest(WebServiceTopicMap.Request request)
public void setWebService(TopicMapServiceStub service)
public void setWebService(java.lang.String service)
public TopicMapServiceStub getWebService()
public boolean isConnected()
throws TopicMapException
TopicMapisConnected in class TopicMapTopicMapExceptionpublic boolean isReadOnly()
TopicMapisReadOnly in class TopicMappublic void close()
TopicMappublic void addTopicMapListener(TopicMapListener listener)
TopicMapaddTopicMapListener in class TopicMappublic void clearTopicMap()
throws TopicMapException
TopicMapclearTopicMap in class TopicMapTopicMapExceptionpublic void clearTopicMapIndexes()
throws TopicMapException
TopicMapclearTopicMapIndexes in class TopicMapTopicMapExceptionpublic Association copyAssociationIn(Association a) throws TopicMapException
TopicMapcopyAssociationIn in class TopicMapTopicMapExceptionpublic void copyTopicAssociationsIn(Topic t) throws TopicMapException
TopicMapcopyTopicAssociationsIn in class TopicMapTopicMapExceptionpublic Topic copyTopicIn(Topic t, boolean deep) throws TopicMapException
TopicMapcopyTopicIn in class TopicMapTopicMapExceptionpublic Association createAssociation(Topic type) throws TopicMapException
TopicMapcreateAssociation in class TopicMapTopicMapExceptionpublic Topic createTopic(java.lang.String id) throws TopicMapException
TopicMapcreateTopic in class TopicMapTopicMapExceptionpublic Topic createTopic() throws TopicMapException
TopicMapcreateTopic in class TopicMapTopicMapExceptionpublic void disableAllListeners()
disableAllListeners in class TopicMappublic void enableAllListeners()
enableAllListeners in class TopicMappublic java.util.Iterator<Association> getAssociations() throws TopicMapException
TopicMapgetAssociations in class TopicMapTopicMapExceptionpublic java.util.Collection<Association> getAssociationsOfType(Topic type) throws TopicMapException
TopicMapgetAssociationsOfType in class TopicMapTopicMapExceptionpublic int getNumAssociations()
throws TopicMapException
TopicMapgetNumAssociations in class TopicMapTopicMapExceptionpublic int getNumTopics()
throws TopicMapException
TopicMapgetNumTopics in class TopicMapTopicMapExceptionpublic TopicMapStatData getStatistics(TopicMapStatOptions options) throws TopicMapException
getStatistics in class TopicMapTopicMapExceptionprivate void indexTopic(TopicMapServiceStub.WSTopic wstopic, WebServiceTopic t)
public Topic getTopic(java.lang.String si, boolean full) throws TopicMapException
TopicMapExceptionpublic Topic getTopic(Locator si) throws TopicMapException
TopicMapgetTopic in class TopicMapTopicMapExceptionpublic Topic getTopic(Locator si, boolean full) throws TopicMapException
TopicMapExceptionpublic Topic getTopicBySubjectLocator(Locator sl) throws TopicMapException
TopicMapgetTopicBySubjectLocator in class TopicMapTopicMapExceptionpublic java.util.List<TopicMapListener> getTopicMapListeners()
TopicMapgetTopicMapListeners in class TopicMappublic Topic getTopicWithBaseName(java.lang.String name) throws TopicMapException
TopicMapgetTopicWithBaseName in class TopicMapTopicMapExceptionpublic java.util.Iterator<Topic> getTopics() throws TopicMapException
TopicMapgetTopics in class TopicMapTopicMapExceptionpublic Topic[] getTopics(java.lang.String[] sis) throws TopicMapException
TopicMapgetTopics in class TopicMapTopicMapExceptionpublic Topic[] getTopics(java.lang.String[] sis, boolean full) throws TopicMapException
TopicMapExceptionpublic java.util.Collection<Topic> getTopicsOfType(Topic type) throws TopicMapException
TopicMapgetTopicsOfType in class TopicMapTopicMapExceptionpublic boolean isTopicMapChanged()
throws TopicMapException
TopicMapisTopicMapChanged in class TopicMapTopicMapExceptionpublic void removeTopicMapListener(TopicMapListener listener)
TopicMapremoveTopicMapListener in class TopicMappublic boolean resetTopicMapChanged()
throws TopicMapException
resetTopicMapChanged in class TopicMapTopicMapExceptionTopicMap.isTopicMapChanged()public java.util.Collection<Topic> search(java.lang.String query, TopicMapSearchOptions options) throws TopicMapException
TopicMapsearch in class TopicMapTopicMapExceptionpublic void setTrackDependent(boolean v)
throws TopicMapException
TopicMapsetTrackDependent in class TopicMapTopicMapExceptionpublic boolean trackingDependent()
throws TopicMapException
trackingDependent in class TopicMapTopicMapExceptionCopyright 2004-2015 Wandora Team