public class QueryTopic extends Topic
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
getAssociationsLock |
private boolean |
getAssociationsLocked |
protected Locator |
si |
protected java.util.ArrayList<Locator> |
sis |
protected QueryTopicMap |
tm |
| Constructor and Description |
|---|
QueryTopic(Locator l,
QueryTopicMap tm) |
| 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.
|
boolean |
equals(java.lang.Object obj) |
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.
|
private java.util.ArrayList<QueryAssociation> |
getQueryAssociations(Locator type) |
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.
|
int |
hashCode() |
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.
|
protected java.util.ArrayList<QueryAssociation> |
makeAssociations(java.util.ArrayList<ResultRow> res,
Locator type) |
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.
|
getData, getDisplayName, getDisplayName, getFirstSubjectIdentifier, getName, getOneSubjectIdentifier, getSortName, mergesWithTopic, setDisplayName, toStringprotected Locator si
protected java.util.ArrayList<Locator> sis
protected QueryTopicMap tm
private java.lang.Object getAssociationsLock
private boolean getAssociationsLocked
public QueryTopic(Locator l, QueryTopicMap tm)
protected java.util.ArrayList<QueryAssociation> makeAssociations(java.util.ArrayList<ResultRow> res, Locator type) throws TopicMapException
TopicMapExceptionprivate java.util.ArrayList<QueryAssociation> getQueryAssociations(Locator type) throws TopicMapException
TopicMapExceptionpublic java.util.Collection<Association> getAssociations() throws TopicMapException
TopicgetAssociations in class TopicTopicMapExceptionpublic java.util.Collection<Association> getAssociations(Topic type) throws TopicMapException
TopicgetAssociations in class TopicTopicMapExceptionpublic java.util.Collection<Association> getAssociations(Topic type, Topic role) throws TopicMapException
TopicgetAssociations in class TopicTopicMapExceptionpublic java.util.Collection<Association> getAssociationsWithRole() throws TopicMapException
TopicgetAssociationsWithRole in class TopicTopicMapExceptionpublic java.util.Collection<Association> getAssociationsWithType() throws TopicMapException
TopicgetAssociationsWithType in class TopicTopicMapExceptionpublic java.lang.String getBaseName()
throws TopicMapException
TopicgetBaseName in class TopicTopicMapExceptionpublic java.lang.String getData(Topic type, Topic version) throws TopicMapException
TopicgetData in class TopicTopicMapExceptionpublic java.util.Hashtable<Topic,java.lang.String> getData(Topic type) throws TopicMapException
TopicgetData in class TopicTopicMapExceptionpublic java.util.Collection<Topic> getDataTypes() throws TopicMapException
TopicgetDataTypes in class TopicTopicMapExceptionpublic java.lang.String getID()
throws TopicMapException
TopicgetID in class TopicTopicMapExceptionpublic java.util.Collection<Locator> getSubjectIdentifiers() throws TopicMapException
TopicgetSubjectIdentifiers in class TopicTopicMapExceptionpublic Locator getSubjectLocator() throws TopicMapException
TopicgetSubjectLocator in class TopicTopicMapExceptionpublic TopicMap getTopicMap()
TopicgetTopicMap in class Topicpublic java.util.Collection<Topic> getTopicsWithDataType() throws TopicMapException
TopicgetTopicsWithDataType in class TopicTopicMapExceptionpublic java.util.Collection<Topic> getTypes() throws TopicMapException
TopicgetTypes in class TopicTopicMapExceptionpublic java.util.Collection<Topic> getTopicsWithDataVersion() throws TopicMapException
TopicgetTopicsWithDataVersion in class TopicTopicMapExceptionpublic java.util.Collection<Topic> getTopicsWithVariantScope() throws TopicMapException
TopicgetTopicsWithVariantScope in class TopicTopicMapExceptionpublic java.lang.String getVariant(java.util.Set<Topic> scope) throws TopicMapException
TopicgetVariant in class TopicTopicMapExceptionpublic java.util.Set<java.util.Set<Topic>> getVariantScopes() throws TopicMapException
TopicgetVariantScopes in class TopicTopicMapExceptionpublic boolean isOfType(Topic t) throws TopicMapException
TopicisOfType in class TopicTopicMapExceptionpublic boolean isDeleteAllowed()
throws TopicMapException
TopicisDeleteAllowed in class TopicTopicMapExceptionpublic boolean isRemoved()
throws TopicMapException
TopicisRemoved in class TopicTopicMapExceptionpublic long getDependentEditTime()
throws TopicMapException
getDependentEditTime in class TopicTopicMapExceptionpublic long getEditTime()
throws TopicMapException
getEditTime in class TopicTopicMapExceptionpublic void addSubjectIdentifier(Locator l) throws TopicMapException
TopicaddSubjectIdentifier in class TopicTopicMapExceptionpublic void addType(Topic t) throws TopicMapException
TopicaddType in class TopicTopicMapExceptionpublic void remove()
throws TopicMapException
Topicremove in class TopicTopicMapExceptionpublic void removeData(Topic type, Topic version) throws TopicMapException
TopicremoveData in class TopicTopicMapExceptionpublic void removeData(Topic type) throws TopicMapException
TopicremoveData in class TopicTopicMapExceptionpublic void removeSubjectIdentifier(Locator l) throws TopicMapException
TopicremoveSubjectIdentifier in class TopicTopicMapExceptionpublic void removeType(Topic t) throws TopicMapException
TopicremoveType in class TopicTopicMapExceptionpublic void removeVariant(java.util.Set<Topic> scope) throws TopicMapException
TopicremoveVariant in class TopicTopicMapExceptionpublic void setBaseName(java.lang.String name)
throws TopicMapException
TopicsetBaseName in class TopicTopicMapExceptionpublic void setData(Topic type, java.util.Hashtable<Topic,java.lang.String> versionData) throws TopicMapException
TopicsetData in class TopicTopicMapExceptionpublic void setData(Topic type, Topic version, java.lang.String value) throws TopicMapException
TopicsetData in class TopicTopicMapExceptionpublic void setDependentEditTime(long time)
throws TopicMapException
setDependentEditTime in class TopicTopicMapExceptionpublic void setEditTime(long time)
throws TopicMapException
setEditTime in class TopicTopicMapExceptionpublic void setSubjectLocator(Locator l) throws TopicMapException
TopicsetSubjectLocator in class TopicTopicMapExceptionpublic void setVariant(java.util.Set<Topic> scope, java.lang.String name) throws TopicMapException
TopicsetVariant in class TopicTopicMapExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright 2004-2015 Wandora Team