public class UndoTopic extends Topic
Modifier and Type | Field and Description |
---|---|
private UndoTopicMap |
topicMap |
private Topic |
wrapped |
Constructor and Description |
---|
UndoTopic(Topic wrapped,
UndoTopicMap topicMap) |
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<Association> |
getAssociations()
Gets all associations where this topic is a player.
|
java.util.Collection<Association> |
getAssociations(Topic type)
Gets all associations of specified type where this topic is a player.
|
java.util.Collection<Association> |
getAssociations(Topic type,
Topic role)
Gets associations of the specified type where this topic is in the specified role
|
java.util.Collection<Association> |
getAssociationsWithRole()
Gets associations that have this topic as role.
|
java.util.Collection<Association> |
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<Topic,java.lang.String> |
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<Topic> |
getDataTypes()
Gets all used data types.
|
long |
getDependentEditTime() |
long |
getEditTime() |
java.lang.String |
getID()
Gets the topic ID.
|
java.util.Collection<Locator> |
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<Topic> |
getTopicsWithDataType()
Gets topics which have data with this topic as type.
|
java.util.Collection<Topic> |
getTopicsWithDataVersion()
Gets topics which have data with this topic as version.
|
java.util.Collection<Topic> |
getTopicsWithVariantScope()
Gets topics which have variants with this topic in scope.
|
java.util.Collection<Topic> |
getTypes()
Gets all topic types.
|
java.lang.String |
getVariant(java.util.Set<Topic> scope)
Gets a variant with the specified scope.
|
java.util.Set<java.util.Set<Topic>> |
getVariantScopes()
Gets the scopes of all variant names.
|
(package private) Topic |
getWrapped() |
(package private) static java.util.Set<Topic> |
getWrappedScope(java.util.Set<Topic> s) |
boolean |
isDeleteAllowed()
Returns true if and only if remove() can be called without it throwing TopicInUseException.
|
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.
|
void |
remove()
Removes this topic.
|
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<Topic> 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<Topic,java.lang.String> versionData)
Sets several data values.
|
void |
setData(Topic type,
Topic version,
java.lang.String value)
Sets data with specified type and version.
|
void |
setDependentEditTime(long time) |
void |
setEditTime(long time) |
void |
setSubjectLocator(Locator l)
Sets the topic subject locator overwriting possible previous value.
|
void |
setVariant(java.util.Set<Topic> scope,
java.lang.String name)
Sets the variant with the specified scope.
|
private boolean |
undoCreated() |
(package private) java.util.Set<Topic> |
wrapScope(java.util.Set<Topic> s) |
getData, getDisplayName, getDisplayName, getFirstSubjectIdentifier, getName, getOneSubjectIdentifier, getSortName, mergesWithTopic, setDisplayName, toString
private UndoTopicMap topicMap
private Topic wrapped
UndoTopic(Topic wrapped, UndoTopicMap topicMap)
Topic getWrapped()
private boolean undoCreated() throws TopicMapException
TopicMapException
public java.lang.String getID() throws TopicMapException
Topic
getID
in class Topic
TopicMapException
public java.util.Collection<Locator> getSubjectIdentifiers() throws TopicMapException
Topic
getSubjectIdentifiers
in class Topic
TopicMapException
public void addSubjectIdentifier(Locator l) throws TopicMapException
Topic
addSubjectIdentifier
in class Topic
TopicMapException
public void removeSubjectIdentifier(Locator l) throws TopicMapException
Topic
removeSubjectIdentifier
in class Topic
TopicMapException
public java.lang.String getBaseName() throws TopicMapException
Topic
getBaseName
in class Topic
TopicMapException
public void setBaseName(java.lang.String name) throws TopicMapException
Topic
setBaseName
in class Topic
TopicMapException
public java.util.Collection<Topic> getTypes() throws TopicMapException
Topic
getTypes
in class Topic
TopicMapException
public void addType(Topic t) throws TopicMapException
Topic
addType
in class Topic
TopicMapException
public void removeType(Topic t) throws TopicMapException
Topic
removeType
in class Topic
TopicMapException
public boolean isOfType(Topic t) throws TopicMapException
Topic
isOfType
in class Topic
TopicMapException
public java.lang.String getVariant(java.util.Set<Topic> scope) throws TopicMapException
Topic
getVariant
in class Topic
TopicMapException
public void setVariant(java.util.Set<Topic> scope, java.lang.String name) throws TopicMapException
Topic
setVariant
in class Topic
TopicMapException
public java.util.Set<java.util.Set<Topic>> getVariantScopes() throws TopicMapException
Topic
getVariantScopes
in class Topic
TopicMapException
public void removeVariant(java.util.Set<Topic> scope) throws TopicMapException
Topic
removeVariant
in class Topic
TopicMapException
public java.lang.String getData(Topic type, Topic version) throws TopicMapException
Topic
getData
in class Topic
TopicMapException
public java.util.Hashtable<Topic,java.lang.String> getData(Topic type) throws TopicMapException
Topic
getData
in class Topic
TopicMapException
public java.util.Collection<Topic> getDataTypes() throws TopicMapException
Topic
getDataTypes
in class Topic
TopicMapException
public void setData(Topic type, java.util.Hashtable<Topic,java.lang.String> versionData) throws TopicMapException
Topic
setData
in class Topic
TopicMapException
public void setData(Topic type, Topic version, java.lang.String value) throws TopicMapException
Topic
setData
in class Topic
TopicMapException
public void removeData(Topic type, Topic version) throws TopicMapException
Topic
removeData
in class Topic
TopicMapException
public void removeData(Topic type) throws TopicMapException
Topic
removeData
in class Topic
TopicMapException
public Locator getSubjectLocator() throws TopicMapException
Topic
getSubjectLocator
in class Topic
TopicMapException
public void setSubjectLocator(Locator l) throws TopicMapException
Topic
setSubjectLocator
in class Topic
TopicMapException
public TopicMap getTopicMap()
Topic
getTopicMap
in class Topic
public java.util.Collection<Association> getAssociations() throws TopicMapException
Topic
getAssociations
in class Topic
TopicMapException
public java.util.Collection<Association> getAssociations(Topic type) throws TopicMapException
Topic
getAssociations
in class Topic
TopicMapException
public java.util.Collection<Association> getAssociations(Topic type, Topic role) throws TopicMapException
Topic
getAssociations
in class Topic
TopicMapException
public void remove() throws TopicMapException
Topic
remove
in class Topic
TopicMapException
public long getEditTime() throws TopicMapException
getEditTime
in class Topic
TopicMapException
public void setEditTime(long time) throws TopicMapException
setEditTime
in class Topic
TopicMapException
public long getDependentEditTime() throws TopicMapException
getDependentEditTime
in class Topic
TopicMapException
public void setDependentEditTime(long time) throws TopicMapException
setDependentEditTime
in class Topic
TopicMapException
public boolean isRemoved() throws TopicMapException
Topic
isRemoved
in class Topic
TopicMapException
public boolean isDeleteAllowed() throws TopicMapException
Topic
isDeleteAllowed
in class Topic
TopicMapException
public java.util.Collection<Topic> getTopicsWithDataType() throws TopicMapException
Topic
getTopicsWithDataType
in class Topic
TopicMapException
public java.util.Collection<Topic> getTopicsWithDataVersion() throws TopicMapException
Topic
getTopicsWithDataVersion
in class Topic
TopicMapException
public java.util.Collection<Topic> getTopicsWithVariantScope() throws TopicMapException
Topic
getTopicsWithVariantScope
in class Topic
TopicMapException
public java.util.Collection<Association> getAssociationsWithType() throws TopicMapException
Topic
getAssociationsWithType
in class Topic
TopicMapException
public java.util.Collection<Association> getAssociationsWithRole() throws TopicMapException
Topic
getAssociationsWithRole
in class Topic
TopicMapException
Copyright 2004-2015 Wandora Team