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

java.lang.Object
  extended by de.topicmapslab.majortom.revision.core.ReadOnlyConstruct
      extended by de.topicmapslab.majortom.revision.core.ReadOnlyReifiable
          extended by de.topicmapslab.majortom.revision.core.ReadOnlyScopable
              extended by de.topicmapslab.majortom.revision.core.ReadOnlyAssociation
                  extended by de.topicmapslab.majortom.inmemory.store.revision.readonly.InMemoryReadOnlyAssociation
All Implemented Interfaces:
de.topicmapslab.majortom.model.core.IAssociation, de.topicmapslab.majortom.model.core.IConstruct, de.topicmapslab.majortom.model.core.IReifiable, de.topicmapslab.majortom.model.core.IScopable, de.topicmapslab.majortom.model.core.ITypeable, java.io.Serializable, java.lang.Comparable<de.topicmapslab.majortom.model.core.IConstruct>, org.tmapi.core.Association, org.tmapi.core.Construct, org.tmapi.core.Reifiable, org.tmapi.core.Scoped, org.tmapi.core.Typed

public class InMemoryReadOnlyAssociation
extends ReadOnlyAssociation

Author:
Sven Krosse
See Also:
Serialized Form

Field Summary
private  org.tmapi.core.Topic cachedReifier
           
private  java.util.Set<org.tmapi.core.Role> cachedRoles
           
private  java.util.Set<de.topicmapslab.majortom.model.core.ITopic> cachedThemes
           
private  org.tmapi.core.Topic cachedType
           
private  java.util.Set<org.tmapi.core.Locator> itemIdentifiers
           
private  java.lang.String reifierId
           
private  java.util.Set<java.lang.String> roleIds
           
private static long serialVersionUID
           
private  java.util.Set<java.lang.String> themeIds
           
private  java.lang.String typeId
           
 
Constructor Summary
InMemoryReadOnlyAssociation(de.topicmapslab.majortom.model.core.IAssociation clone)
           
 
Method Summary
 java.util.Set<org.tmapi.core.Locator> getItemIdentifiers()
          
 de.topicmapslab.majortom.model.core.ITopicMap getParent()
          
 org.tmapi.core.Topic getReifier()
          
 java.util.Set<org.tmapi.core.Role> getRoles()
          
 de.topicmapslab.majortom.model.core.IScope getScopeObject()
          
 org.tmapi.core.Topic getType()
          
 
Methods inherited from class de.topicmapslab.majortom.revision.core.ReadOnlyAssociation
createRole, getRoles, getRoleTypes, setType
 
Methods inherited from class de.topicmapslab.majortom.revision.core.ReadOnlyScopable
addTheme, getScope, removeTheme
 
Methods inherited from class de.topicmapslab.majortom.revision.core.ReadOnlyReifiable
setReifier
 
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, toString, wait, wait, wait
 
Methods inherited from interface org.tmapi.core.Reifiable
setReifier
 
Methods inherited from interface de.topicmapslab.majortom.model.core.IScopable
getTopicMap
 
Methods inherited from interface org.tmapi.core.Scoped
addTheme, getScope, removeTheme
 
Methods inherited from interface de.topicmapslab.majortom.model.core.IConstruct
isRemoved, longId, remove
 
Methods inherited from interface org.tmapi.core.Construct
addItemIdentifier, equals, getId, hashCode, remove, removeItemIdentifier
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

reifierId

private final java.lang.String reifierId

typeId

private final java.lang.String typeId

roleIds

private final java.util.Set<java.lang.String> roleIds

themeIds

private final java.util.Set<java.lang.String> themeIds

cachedType

private org.tmapi.core.Topic cachedType

cachedRoles

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

cachedReifier

private org.tmapi.core.Topic cachedReifier

itemIdentifiers

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

cachedThemes

private java.util.Set<de.topicmapslab.majortom.model.core.ITopic> cachedThemes
Constructor Detail

InMemoryReadOnlyAssociation

public InMemoryReadOnlyAssociation(de.topicmapslab.majortom.model.core.IAssociation clone)
Parameters:
clone -
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.IAssociation
Specified by:
getParent in interface org.tmapi.core.Association
Specified by:
getParent in interface org.tmapi.core.Construct
Overrides:
getParent in class ReadOnlyAssociation

getRoles

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


getType

public org.tmapi.core.Topic getType()


getReifier

public org.tmapi.core.Topic getReifier()


getScopeObject

public de.topicmapslab.majortom.model.core.IScope getScopeObject()