public class LinkedTopicMap extends TopicMap implements TopicMapListener, ContainerTopicMapListener
Modifier and Type | Field and Description |
---|---|
protected Layer |
linkedLayer |
protected TopicMap |
linkedMap |
protected java.util.ArrayList<TopicMapListener> |
topicMapListeners |
protected ContainerTopicMap |
wrappedContainer |
protected java.lang.String |
wrappedName |
consistencyCheck, consistencyCheckWhenXTMImport, EDITTIME_SI, isReadOnly, logger, parentTopicMap
Constructor and Description |
---|
LinkedTopicMap(java.lang.String wrappedName) |
LinkedTopicMap(TopicMap linkedMap) |
Modifier and Type | Method and Description |
---|---|
void |
addTopicMapListener(TopicMapListener listener)
Adds a topic map listener.
|
void |
associationChanged(Association a)
A notification used to report general or large changes in association.
|
void |
associationPlayerChanged(Association a,
Topic role,
Topic newPlayer,
Topic oldPlayer)
A notification that a player in an association with a certain role has
been changed.
|
void |
associationRemoved(Association a)
A notification that an association has been completely removed.
|
void |
associationTypeChanged(Association a,
Topic newType,
Topic oldType)
A notification that association type has changed.
|
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() |
protected boolean |
findLinkedMap() |
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.
|
LinkedAssociation |
getLinkedAssociation(Association a) |
java.util.Collection<Association> |
getLinkedAssociations(java.util.Collection<Association> associations) |
LinkedTopic |
getLinkedTopic(Topic t) |
TopicMap |
getLinkedTopicMap() |
java.util.Collection<Topic> |
getLinkedTopics(java.util.Collection<Topic> topics) |
java.util.Set<Topic> |
getLinkedTopics(java.util.Set<Topic> topics) |
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 |
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.
|
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.
|
Association |
getUnlinkedAssociation(Association a) |
java.util.Collection<Association> |
getUnlinkedAssociations(java.util.Collection<Association> associations) |
java.util.Set<Topic> |
getUnlinkedSetOfTopics(java.util.Set<Topic> topics) |
Topic |
getUnlinkedTopic(Topic t) |
java.util.Collection<Topic> |
getUnlinkedTopics(java.util.Collection<Topic> topics) |
boolean |
isTopicMapChanged()
Checks if the topic map has been changed since the last call to resetTopicMapChanged.
|
void |
layerAdded(Layer l) |
void |
layerChanged(Layer oldLayer,
Layer newLayer) |
void |
layerRemoved(Layer l) |
void |
layerStructureChanged() |
void |
layerVisibilityChanged(Layer l) |
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.
|
protected void |
setLinkedMap(Layer l) |
protected void |
setLinkedMap(TopicMap tm) |
void |
setTrackDependent(boolean v)
NOTE: The two trackDependent methods are mostly deprecated.
|
void |
topicBaseNameChanged(Topic t,
java.lang.String newName,
java.lang.String oldName)
Notification that the base name has been changed.
|
void |
topicChanged(Topic t)
A notification used to report general or large changes in topic, for example when topics are merged.
|
void |
topicDataChanged(Topic t,
Topic type,
Topic version,
java.lang.String newValue,
java.lang.String oldValue)
Notification that topic occurrence has been changed.
|
void |
topicRemoved(Topic t)
Notification that a topic has been completely removed.
|
void |
topicSubjectIdentifierChanged(Topic t,
Locator added,
Locator removed)
Notification that a subject identifier has changed.
|
void |
topicSubjectLocatorChanged(Topic t,
Locator newLocator,
Locator oldLocator)
Notification that the subject locator has been changed.
|
void |
topicTypeChanged(Topic t,
Topic added,
Topic removed)
Notification that a topic type has changed.
|
void |
topicVariantChanged(Topic t,
java.util.Collection<Topic> scope,
java.lang.String newName,
java.lang.String oldName)
Notification that a variant name has been changed.
|
boolean |
trackingDependent() |
protected void |
unlinkMap() |
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, isConnected, isReadOnly, log, log, log, makeJTMString, makeJTMTopicId, makeLTMString, makeLTMTopicId, makeSubjectIndicator, makeSubjectIndicatorAsLocator, mergeIn, mergeIn, setConsistencyCheck, setLogger, setLogTitle, setParentTopicMap, setProgress, setProgressMax, setReadOnly
protected TopicMap linkedMap
protected Layer linkedLayer
protected ContainerTopicMap wrappedContainer
protected java.util.ArrayList<TopicMapListener> topicMapListeners
protected java.lang.String wrappedName
public LinkedTopicMap(TopicMap linkedMap)
public LinkedTopicMap(java.lang.String wrappedName)
public void close()
TopicMap
public TopicMap getLinkedTopicMap()
protected void unlinkMap()
protected void setLinkedMap(Layer l)
protected void setLinkedMap(TopicMap tm)
protected boolean findLinkedMap()
public LinkedTopic getLinkedTopic(Topic t)
public LinkedAssociation getLinkedAssociation(Association a)
public java.util.Collection<Topic> getLinkedTopics(java.util.Collection<Topic> topics)
public java.util.Collection<Association> getLinkedAssociations(java.util.Collection<Association> associations)
public Association getUnlinkedAssociation(Association a)
public java.util.Collection<Topic> getUnlinkedTopics(java.util.Collection<Topic> topics)
public java.util.Set<Topic> getUnlinkedSetOfTopics(java.util.Set<Topic> topics)
public java.util.Collection<Association> getUnlinkedAssociations(java.util.Collection<Association> associations)
public java.util.List<TopicMapListener> getTopicMapListeners()
TopicMap
getTopicMapListeners
in class TopicMap
public void addTopicMapListener(TopicMapListener listener)
TopicMap
addTopicMapListener
in class TopicMap
public void removeTopicMapListener(TopicMapListener listener)
TopicMap
removeTopicMapListener
in class TopicMap
public void clearTopicMap() throws TopicMapException
TopicMap
clearTopicMap
in class TopicMap
TopicMapException
public void clearTopicMapIndexes() throws TopicMapException
TopicMap
clearTopicMapIndexes
in class TopicMap
TopicMapException
public Association copyAssociationIn(Association a) throws TopicMapException
TopicMap
copyAssociationIn
in class TopicMap
TopicMapException
public void copyTopicAssociationsIn(Topic t) throws TopicMapException
TopicMap
copyTopicAssociationsIn
in class TopicMap
TopicMapException
public Topic copyTopicIn(Topic t, boolean deep) throws TopicMapException
TopicMap
copyTopicIn
in class TopicMap
TopicMapException
public Association createAssociation(Topic type) throws TopicMapException
TopicMap
createAssociation
in class TopicMap
TopicMapException
public Topic createTopic(java.lang.String id) throws TopicMapException
TopicMap
createTopic
in class TopicMap
TopicMapException
public Topic createTopic() throws TopicMapException
TopicMap
createTopic
in class TopicMap
TopicMapException
public void disableAllListeners()
disableAllListeners
in class TopicMap
public void enableAllListeners()
enableAllListeners
in class TopicMap
public java.util.Iterator<Association> getAssociations() throws TopicMapException
TopicMap
getAssociations
in class TopicMap
TopicMapException
public java.util.Collection<Association> getAssociationsOfType(Topic type) throws TopicMapException
TopicMap
getAssociationsOfType
in class TopicMap
TopicMapException
public int getNumAssociations() throws TopicMapException
TopicMap
getNumAssociations
in class TopicMap
TopicMapException
public int getNumTopics() throws TopicMapException
TopicMap
getNumTopics
in class TopicMap
TopicMapException
public TopicMapStatData getStatistics(TopicMapStatOptions options) throws TopicMapException
getStatistics
in class TopicMap
TopicMapException
public Topic getTopic(Locator si) throws TopicMapException
TopicMap
getTopic
in class TopicMap
TopicMapException
public Topic getTopicBySubjectLocator(Locator sl) throws TopicMapException
TopicMap
getTopicBySubjectLocator
in class TopicMap
TopicMapException
public Topic getTopicWithBaseName(java.lang.String name) throws TopicMapException
TopicMap
getTopicWithBaseName
in class TopicMap
TopicMapException
public java.util.Iterator<Topic> getTopics() throws TopicMapException
TopicMap
getTopics
in class TopicMap
TopicMapException
public Topic[] getTopics(java.lang.String[] sis) throws TopicMapException
TopicMap
getTopics
in class TopicMap
TopicMapException
public java.util.Collection<Topic> getTopicsOfType(Topic type) throws TopicMapException
TopicMap
getTopicsOfType
in class TopicMap
TopicMapException
public boolean isTopicMapChanged() throws TopicMapException
TopicMap
isTopicMapChanged
in class TopicMap
TopicMapException
public boolean resetTopicMapChanged() throws TopicMapException
resetTopicMapChanged
in class TopicMap
TopicMapException
TopicMap.isTopicMapChanged()
public java.util.Collection<Topic> search(java.lang.String query, TopicMapSearchOptions options) throws TopicMapException
TopicMap
search
in class TopicMap
TopicMapException
public void setTrackDependent(boolean v) throws TopicMapException
TopicMap
setTrackDependent
in class TopicMap
TopicMapException
public boolean trackingDependent() throws TopicMapException
trackingDependent
in class TopicMap
TopicMapException
public void associationChanged(Association a) throws TopicMapException
TopicMapListener
associationChanged
in interface TopicMapListener
TopicMapException
public void associationPlayerChanged(Association a, Topic role, Topic newPlayer, Topic oldPlayer) throws TopicMapException
TopicMapListener
associationPlayerChanged
in interface TopicMapListener
TopicMapException
public void associationRemoved(Association a) throws TopicMapException
TopicMapListener
associationRemoved
in interface TopicMapListener
TopicMapException
public void associationTypeChanged(Association a, Topic newType, Topic oldType) throws TopicMapException
TopicMapListener
associationTypeChanged
in interface TopicMapListener
TopicMapException
public void topicBaseNameChanged(Topic t, java.lang.String newName, java.lang.String oldName) throws TopicMapException
TopicMapListener
topicBaseNameChanged
in interface TopicMapListener
TopicMapException
public void topicChanged(Topic t) throws TopicMapException
TopicMapListener
topicChanged
in interface TopicMapListener
TopicMapException
public void topicDataChanged(Topic t, Topic type, Topic version, java.lang.String newValue, java.lang.String oldValue) throws TopicMapException
TopicMapListener
topicDataChanged
in interface TopicMapListener
TopicMapException
public void topicRemoved(Topic t) throws TopicMapException
TopicMapListener
topicRemoved
in interface TopicMapListener
TopicMapException
public void topicSubjectIdentifierChanged(Topic t, Locator added, Locator removed) throws TopicMapException
TopicMapListener
topicSubjectIdentifierChanged
in interface TopicMapListener
TopicMapException
public void topicSubjectLocatorChanged(Topic t, Locator newLocator, Locator oldLocator) throws TopicMapException
TopicMapListener
topicSubjectLocatorChanged
in interface TopicMapListener
TopicMapException
public void topicTypeChanged(Topic t, Topic added, Topic removed) throws TopicMapException
TopicMapListener
topicTypeChanged
in interface TopicMapListener
TopicMapException
public void topicVariantChanged(Topic t, java.util.Collection<Topic> scope, java.lang.String newName, java.lang.String oldName) throws TopicMapException
TopicMapListener
topicVariantChanged
in interface TopicMapListener
TopicMapException
public void layerAdded(Layer l)
layerAdded
in interface ContainerTopicMapListener
public void layerChanged(Layer oldLayer, Layer newLayer)
layerChanged
in interface ContainerTopicMapListener
public void layerRemoved(Layer l)
layerRemoved
in interface ContainerTopicMapListener
public void layerStructureChanged()
layerStructureChanged
in interface ContainerTopicMapListener
public void layerVisibilityChanged(Layer l)
layerVisibilityChanged
in interface ContainerTopicMapListener
Copyright 2004-2015 Wandora Team