public class RemoteTopic extends TopicImpl
| Modifier and Type | Field and Description |
|---|---|
private RemoteTopicMap |
topicMap |
| Constructor and Description |
|---|
RemoteTopic(RemoteTopicMap topicMap)
Creates a new instance of RemoteTopic
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSubjectIdentifier(Locator l)
Adds a subject identifier for the topic.
|
void |
addType(Topic t)
Adds a topic type.
|
java.util.Collection |
getAssociations()
Gets all associations where this topic is a player.
|
java.util.Collection |
getAssociations(Topic type)
Gets all associations of specified type where this topic is a player.
|
java.util.Collection |
getAssociations(Topic type,
Topic role)
Gets associations of the specified type where this topic is in the specified role
|
java.util.Collection |
getAssociationsWithRole()
Gets associations that have this topic as role.
|
java.util.Collection |
getAssociationsWithType()
Gets associations that have this topic as type.
|
java.lang.String |
getBaseName()
Gets the topic base name or null if no base name has been set.
|
java.util.Hashtable |
getData(Topic type)
Returns a Hashtable mapping data versions to data content.
|
java.lang.String |
getData(Topic type,
Topic version)
Gets data with the specified type and version.
|
java.util.Collection |
getDataTypes()
Gets all used data types.
|
long |
getDependentEditTime() |
long |
getEditTime() |
java.lang.String |
getID()
Gets the topic ID.
|
java.util.Collection |
getSubjectIdentifiers()
Gets all subject identifiers of the topic.
|
Locator |
getSubjectLocator()
Gets the topic subject locator or null if it has not been set.
|
TopicMap |
getTopicMap()
Gets the topic map this topic belongs to.
|
java.util.Collection |
getTopicsWithDataType()
Gets topics which have data with this topic as type.
|
java.util.Collection |
getTypes()
Gets all topic types.
|
java.lang.String |
getVariant(java.util.Set scope)
Gets a variant with the specified scope.
|
java.util.Set |
getVariantScopes()
Gets the scopes of all variant names.
|
boolean |
isDeleteAllowed()
Notice, isDeleteAllowed doesn't return true if the topic map is
write protected or if the topic is already deleted.
|
boolean |
isOfType(Topic t)
Checks if this topic is of the specified type.
|
boolean |
isRemoved()
Returns true if this topic has been removed from the topic map it belonged to.
|
private void |
makeFull() |
void |
mergeIn(Topic t) |
void |
removeData(Topic type)
Removes all data with the specified type.
|
void |
removeData(Topic type,
Topic version)
Removes data with specified type and version.
|
void |
removeSubjectIdentifier(Locator l)
Removes a subject identifier.
|
void |
removeType(Topic t)
Removes a topic type.
|
void |
removeVariant(java.util.Set scope)
Removes a variant name with the specified scope.
|
void |
setBaseName(java.lang.String name)
Sets the topic base name.
|
void |
setData(Topic type,
java.util.Hashtable versionData)
Sets several data values.
|
void |
setData(Topic type,
Topic version,
java.lang.String value)
Sets data with specified type and version.
|
void |
setSubjectLocator(Locator l)
Sets the topic subject locator overwriting possible previous value.
|
void |
setVariant(java.util.Set scope,
java.lang.String name)
Sets the variant with the specified scope.
|
clearNameCaches, getDisplayName, getSortName, getTopicsWithDataVersion, getTopicsWithVariantScope, getUniqueID, remove, setDependentEditTime, setEditTimegetData, getDisplayName, getFirstSubjectIdentifier, getName, getOneSubjectIdentifier, mergesWithTopic, setDisplayName, toStringprivate RemoteTopicMap topicMap
public RemoteTopic(RemoteTopicMap topicMap)
private void makeFull()
throws TopicMapException
TopicMapExceptionpublic java.util.Collection getAssociations()
throws TopicMapException
TopicgetAssociations in class TopicImplTopicMapExceptionpublic java.util.Collection getAssociations(Topic type) throws TopicMapException
TopicgetAssociations in class TopicImplTopicMapExceptionpublic java.util.Collection getAssociations(Topic type, Topic role) throws TopicMapException
TopicgetAssociations in class TopicImplTopicMapExceptionpublic java.lang.String getBaseName()
throws TopicMapException
TopicgetBaseName in class TopicImplTopicMapExceptionpublic java.util.Hashtable getData(Topic type) throws TopicMapException
TopicgetData in class TopicImplTopicMapExceptionpublic java.lang.String getData(Topic type, Topic version) throws TopicMapException
TopicgetData in class TopicImplTopicMapExceptionpublic java.util.Collection getDataTypes()
throws TopicMapException
TopicgetDataTypes in class TopicImplTopicMapExceptionpublic long getDependentEditTime()
throws TopicMapException
getDependentEditTime in class TopicImplTopicMapExceptionpublic long getEditTime()
throws TopicMapException
getEditTime in class TopicImplTopicMapExceptionpublic java.lang.String getID()
throws TopicMapException
TopicgetID in class TopicImplTopicMapExceptionpublic java.util.Collection getSubjectIdentifiers()
throws TopicMapException
TopicgetSubjectIdentifiers in class TopicImplTopicMapExceptionpublic Locator getSubjectLocator() throws TopicMapException
TopicgetSubjectLocator in class TopicImplTopicMapExceptionpublic TopicMap getTopicMap()
TopicgetTopicMap in class TopicImplpublic java.util.Collection getTypes()
throws TopicMapException
TopicgetTypes in class TopicImplTopicMapExceptionpublic java.lang.String getVariant(java.util.Set scope)
throws TopicMapException
TopicgetVariant in class TopicImplTopicMapExceptionpublic java.util.Set getVariantScopes()
throws TopicMapException
TopicgetVariantScopes in class TopicImplTopicMapExceptionpublic boolean isDeleteAllowed()
throws TopicMapException
TopicImplisDeleteAllowed in class TopicImplTopicMapExceptionpublic boolean isOfType(Topic t) throws TopicMapException
TopicisOfType in class TopicImplTopicMapExceptionpublic boolean isRemoved()
throws TopicMapException
TopicisRemoved in class TopicImplTopicMapExceptionpublic void removeData(Topic type) throws TopicMapException
TopicremoveData in class TopicImplTopicMapExceptionpublic void removeData(Topic type, Topic version) throws TopicMapException
TopicremoveData in class TopicImplTopicMapExceptionpublic void removeVariant(java.util.Set scope)
throws TopicMapException
TopicremoveVariant in class TopicImplTopicMapExceptionpublic void setData(Topic type, java.util.Hashtable versionData) throws TopicMapException
TopicsetData in class TopicImplTopicMapExceptionpublic void setData(Topic type, Topic version, java.lang.String value) throws TopicMapException
TopicsetData in class TopicImplTopicMapExceptionpublic void setBaseName(java.lang.String name)
throws TopicMapException
TopicsetBaseName in class TopicImplTopicMapExceptionpublic void setVariant(java.util.Set scope,
java.lang.String name)
throws TopicMapException
TopicsetVariant in class TopicImplTopicMapExceptionpublic void mergeIn(Topic t) throws TopicMapException
mergeIn in class TopicImplTopicMapExceptionpublic void addSubjectIdentifier(Locator l) throws TopicMapException
TopicaddSubjectIdentifier in class TopicImplTopicMapExceptionpublic void addType(Topic t) throws TopicMapException
TopicaddType in class TopicImplTopicMapExceptionpublic void removeSubjectIdentifier(Locator l) throws TopicMapException
TopicremoveSubjectIdentifier in class TopicImplTopicMapExceptionpublic void removeType(Topic t) throws TopicMapException
TopicremoveType in class TopicImplTopicMapExceptionpublic void setSubjectLocator(Locator l) throws TopicMapException
TopicsetSubjectLocator in class TopicImplTopicMapExceptionpublic java.util.Collection getAssociationsWithRole()
TopicgetAssociationsWithRole in class TopicImplpublic java.util.Collection getAssociationsWithType()
TopicgetAssociationsWithType in class TopicImplpublic java.util.Collection getTopicsWithDataType()
TopicgetTopicsWithDataType in class TopicImplCopyright 2004-2015 Wandora Team