de.topicmapslab.majortom.inmemory.store.revision.readonly
Class InMemoryReadOnlyTopic

java.lang.Object
  extended by de.topicmapslab.majortom.revision.core.ReadOnlyConstruct
      extended by de.topicmapslab.majortom.revision.core.ReadOnlyTopic
          extended by de.topicmapslab.majortom.inmemory.store.revision.readonly.InMemoryReadOnlyTopic
All Implemented Interfaces:
de.topicmapslab.majortom.model.core.IConstruct, de.topicmapslab.majortom.model.core.ITopic, java.io.Serializable, java.lang.Comparable<de.topicmapslab.majortom.model.core.IConstruct>, org.tmapi.core.Construct, org.tmapi.core.Topic

public class InMemoryReadOnlyTopic
extends ReadOnlyTopic

Author:
Sven Krosse
See Also:
Serialized Form

Field Summary
private  java.util.Set<java.lang.String> associationsPlayedIds
           
private  java.lang.String bestIdentifierWithoutPrefix
           
private  java.lang.String bestIdentifierWithPrefix
           
private  java.lang.String bestLabel
           
private  java.util.Set<org.tmapi.core.Association> cachedAssociationsPlayed
           
private  java.util.Set<org.tmapi.core.Name> cachedNames
           
private  java.util.Set<org.tmapi.core.Occurrence> cachedOccurrences
           
private  org.tmapi.core.Reifiable cachedReified
           
private  java.util.Set<org.tmapi.core.Role> cachedRolesPlayed
           
private  java.util.Set<org.tmapi.core.Topic> cachedSupertypes
           
private  java.util.Set<org.tmapi.core.Topic> cachedTypes
           
private  java.util.Set<org.tmapi.core.Locator> itemIdentifiers
           
private  java.util.Set<java.lang.String> nameIds
           
private  java.util.Set<java.lang.String> occurrenceIds
           
private  java.lang.String reifiedId
           
private  java.util.Set<java.lang.String> rolesPlayedIds
           
private static long serialVersionUID
           
private  java.util.Set<org.tmapi.core.Locator> subjectIdentifiers
           
private  java.util.Set<org.tmapi.core.Locator> subjectLocators
           
private  java.util.Set<java.lang.String> supertypeIds
           
private  java.util.Set<java.lang.String> typesIds
           
 
Constructor Summary
InMemoryReadOnlyTopic(de.topicmapslab.majortom.model.core.ITopic clone)
          constructor
 
Method Summary
 java.util.Collection<org.tmapi.core.Association> getAssociationsPlayed()
          
 java.lang.String getBestIdentifier(boolean withPrefix)
          
 java.lang.String getBestLabel()
          
 java.lang.String getBestLabel(org.tmapi.core.Topic theme)
          
 java.lang.String getBestLabel(org.tmapi.core.Topic theme, boolean strict)
          
 java.util.Set<org.tmapi.core.Locator> getItemIdentifiers()
          
 java.util.Set<org.tmapi.core.Name> getNames()
          
 java.util.Set<org.tmapi.core.Occurrence> getOccurrences()
          
 de.topicmapslab.majortom.model.core.ITopicMap getParent()
          
 org.tmapi.core.Reifiable getReified()
          
 java.util.Set<org.tmapi.core.Role> getRolesPlayed()
          
 java.util.Set<org.tmapi.core.Locator> getSubjectIdentifiers()
          
 java.util.Set<org.tmapi.core.Locator> getSubjectLocators()
          
 java.util.Collection<org.tmapi.core.Topic> getSupertypes()
          
 java.util.Set<org.tmapi.core.Topic> getTypes()
          
 java.lang.String toString()
          
 
Methods inherited from class de.topicmapslab.majortom.revision.core.ReadOnlyTopic
addSubjectIdentifier, addSubjectLocator, addSupertype, addType, createName, createName, createName, createName, createOccurrence, createOccurrence, createOccurrence, createOccurrence, createOccurrence, createOccurrence, getAssociationsPlayed, getAssociationsPlayed, getAssociationsPlayed, getCharacteristics, getCharacteristics, getCharacteristics, getCharacteristics, getNames, getNames, getNames, getOccurrences, getOccurrences, getOccurrences, getRolesPlayed, getRolesPlayed, mergeIn, removeSubjectIdentifier, removeSubjectLocator, removeSupertype, removeType
 
Methods inherited from class de.topicmapslab.majortom.revision.core.ReadOnlyConstruct
addItemIdentifier, compareTo, equals, getId, getTopicMap, hashCode, isRemoved, longId, remove, remove, removeItemIdentifier, setRemoved
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.tmapi.core.Topic
addItemIdentifier, remove
 
Methods inherited from interface de.topicmapslab.majortom.model.core.IConstruct
getTopicMap, isRemoved, longId, remove
 
Methods inherited from interface org.tmapi.core.Construct
equals, getId, hashCode, removeItemIdentifier
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

subjectIdentifiers

private java.util.Set<org.tmapi.core.Locator> subjectIdentifiers

subjectLocators

private java.util.Set<org.tmapi.core.Locator> subjectLocators

typesIds

private java.util.Set<java.lang.String> typesIds

supertypeIds

private java.util.Set<java.lang.String> supertypeIds

nameIds

private java.util.Set<java.lang.String> nameIds

occurrenceIds

private java.util.Set<java.lang.String> occurrenceIds

rolesPlayedIds

private java.util.Set<java.lang.String> rolesPlayedIds

associationsPlayedIds

private java.util.Set<java.lang.String> associationsPlayedIds

reifiedId

private final java.lang.String reifiedId

bestLabel

private final java.lang.String bestLabel

bestIdentifierWithPrefix

private final java.lang.String bestIdentifierWithPrefix

bestIdentifierWithoutPrefix

private final java.lang.String bestIdentifierWithoutPrefix

cachedTypes

private java.util.Set<org.tmapi.core.Topic> cachedTypes

cachedSupertypes

private java.util.Set<org.tmapi.core.Topic> cachedSupertypes

cachedNames

private java.util.Set<org.tmapi.core.Name> cachedNames

cachedOccurrences

private java.util.Set<org.tmapi.core.Occurrence> cachedOccurrences

cachedReified

private org.tmapi.core.Reifiable cachedReified

cachedRolesPlayed

private java.util.Set<org.tmapi.core.Role> cachedRolesPlayed

cachedAssociationsPlayed

private java.util.Set<org.tmapi.core.Association> cachedAssociationsPlayed

itemIdentifiers

private java.util.Set<org.tmapi.core.Locator> itemIdentifiers
Constructor Detail

InMemoryReadOnlyTopic

public InMemoryReadOnlyTopic(de.topicmapslab.majortom.model.core.ITopic clone)
constructor

Parameters:
clone - the topic to clone
parent -
Method Detail

getItemIdentifiers

public java.util.Set<org.tmapi.core.Locator> getItemIdentifiers()


getParent

public de.topicmapslab.majortom.model.core.ITopicMap getParent()

Specified by:
getParent in interface de.topicmapslab.majortom.model.core.ITopic
Specified by:
getParent in interface org.tmapi.core.Construct
Specified by:
getParent in interface org.tmapi.core.Topic
Overrides:
getParent in class ReadOnlyTopic

getAssociationsPlayed

public java.util.Collection<org.tmapi.core.Association> getAssociationsPlayed()


getSupertypes

public java.util.Collection<org.tmapi.core.Topic> getSupertypes()


getNames

public java.util.Set<org.tmapi.core.Name> getNames()


getOccurrences

public java.util.Set<org.tmapi.core.Occurrence> getOccurrences()


getReified

public org.tmapi.core.Reifiable getReified()


getRolesPlayed

public java.util.Set<org.tmapi.core.Role> getRolesPlayed()


getSubjectIdentifiers

public java.util.Set<org.tmapi.core.Locator> getSubjectIdentifiers()


getSubjectLocators

public java.util.Set<org.tmapi.core.Locator> getSubjectLocators()


getTypes

public java.util.Set<org.tmapi.core.Topic> getTypes()


getBestLabel

public java.lang.String getBestLabel()


getBestLabel

public java.lang.String getBestLabel(org.tmapi.core.Topic theme)


getBestLabel

public java.lang.String getBestLabel(org.tmapi.core.Topic theme,
                                     boolean strict)


getBestIdentifier

public java.lang.String getBestIdentifier(boolean withPrefix)


toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object