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, setEditTime
getData, getDisplayName, getFirstSubjectIdentifier, getName, getOneSubjectIdentifier, mergesWithTopic, setDisplayName, toString
private RemoteTopicMap topicMap
public RemoteTopic(RemoteTopicMap topicMap)
private void makeFull() throws TopicMapException
TopicMapException
public java.util.Collection getAssociations() throws TopicMapException
Topic
getAssociations
in class TopicImpl
TopicMapException
public java.util.Collection getAssociations(Topic type) throws TopicMapException
Topic
getAssociations
in class TopicImpl
TopicMapException
public java.util.Collection getAssociations(Topic type, Topic role) throws TopicMapException
Topic
getAssociations
in class TopicImpl
TopicMapException
public java.lang.String getBaseName() throws TopicMapException
Topic
getBaseName
in class TopicImpl
TopicMapException
public java.util.Hashtable getData(Topic type) throws TopicMapException
Topic
getData
in class TopicImpl
TopicMapException
public java.lang.String getData(Topic type, Topic version) throws TopicMapException
Topic
getData
in class TopicImpl
TopicMapException
public java.util.Collection getDataTypes() throws TopicMapException
Topic
getDataTypes
in class TopicImpl
TopicMapException
public long getDependentEditTime() throws TopicMapException
getDependentEditTime
in class TopicImpl
TopicMapException
public long getEditTime() throws TopicMapException
getEditTime
in class TopicImpl
TopicMapException
public java.lang.String getID() throws TopicMapException
Topic
getID
in class TopicImpl
TopicMapException
public java.util.Collection getSubjectIdentifiers() throws TopicMapException
Topic
getSubjectIdentifiers
in class TopicImpl
TopicMapException
public Locator getSubjectLocator() throws TopicMapException
Topic
getSubjectLocator
in class TopicImpl
TopicMapException
public TopicMap getTopicMap()
Topic
getTopicMap
in class TopicImpl
public java.util.Collection getTypes() throws TopicMapException
Topic
getTypes
in class TopicImpl
TopicMapException
public java.lang.String getVariant(java.util.Set scope) throws TopicMapException
Topic
getVariant
in class TopicImpl
TopicMapException
public java.util.Set getVariantScopes() throws TopicMapException
Topic
getVariantScopes
in class TopicImpl
TopicMapException
public boolean isDeleteAllowed() throws TopicMapException
TopicImpl
isDeleteAllowed
in class TopicImpl
TopicMapException
public boolean isOfType(Topic t) throws TopicMapException
Topic
isOfType
in class TopicImpl
TopicMapException
public boolean isRemoved() throws TopicMapException
Topic
isRemoved
in class TopicImpl
TopicMapException
public void removeData(Topic type) throws TopicMapException
Topic
removeData
in class TopicImpl
TopicMapException
public void removeData(Topic type, Topic version) throws TopicMapException
Topic
removeData
in class TopicImpl
TopicMapException
public void removeVariant(java.util.Set scope) throws TopicMapException
Topic
removeVariant
in class TopicImpl
TopicMapException
public void setData(Topic type, java.util.Hashtable versionData) throws TopicMapException
Topic
setData
in class TopicImpl
TopicMapException
public void setData(Topic type, Topic version, java.lang.String value) throws TopicMapException
Topic
setData
in class TopicImpl
TopicMapException
public void setBaseName(java.lang.String name) throws TopicMapException
Topic
setBaseName
in class TopicImpl
TopicMapException
public void setVariant(java.util.Set scope, java.lang.String name) throws TopicMapException
Topic
setVariant
in class TopicImpl
TopicMapException
public void mergeIn(Topic t) throws TopicMapException
mergeIn
in class TopicImpl
TopicMapException
public void addSubjectIdentifier(Locator l) throws TopicMapException
Topic
addSubjectIdentifier
in class TopicImpl
TopicMapException
public void addType(Topic t) throws TopicMapException
Topic
addType
in class TopicImpl
TopicMapException
public void removeSubjectIdentifier(Locator l) throws TopicMapException
Topic
removeSubjectIdentifier
in class TopicImpl
TopicMapException
public void removeType(Topic t) throws TopicMapException
Topic
removeType
in class TopicImpl
TopicMapException
public void setSubjectLocator(Locator l) throws TopicMapException
Topic
setSubjectLocator
in class TopicImpl
TopicMapException
public java.util.Collection getAssociationsWithRole()
Topic
getAssociationsWithRole
in class TopicImpl
public java.util.Collection getAssociationsWithType()
Topic
getAssociationsWithType
in class TopicImpl
public java.util.Collection getTopicsWithDataType()
Topic
getTopicsWithDataType
in class TopicImpl
Copyright 2004-2015 Wandora Team