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

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.ReadOnlyDatatypeAware
                  extended by de.topicmapslab.majortom.revision.core.ReadOnlyOccurrence
                      extended by de.topicmapslab.majortom.inmemory.store.revision.readonly.InMemoryReadOnlyOccurrence
All Implemented Interfaces:
de.topicmapslab.majortom.model.core.ICharacteristics, de.topicmapslab.majortom.model.core.IConstruct, de.topicmapslab.majortom.model.core.IDatatypeAware, de.topicmapslab.majortom.model.core.IOccurrence, 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.Construct, org.tmapi.core.DatatypeAware, org.tmapi.core.Occurrence, org.tmapi.core.Reifiable, org.tmapi.core.Scoped, org.tmapi.core.Typed

public class InMemoryReadOnlyOccurrence
extends ReadOnlyOccurrence

Author:
Sven Krosse
See Also:
Serialized Form

Field Summary
private  de.topicmapslab.majortom.model.core.ITopic cachedParent
           
private  org.tmapi.core.Topic cachedReifier
           
private  java.util.Set<de.topicmapslab.majortom.model.core.ITopic> cachedThemes
           
private  org.tmapi.core.Topic cachedType
           
private  org.tmapi.core.Locator datatype
           
private  java.util.Set<org.tmapi.core.Locator> itemIdentifiers
           
private  java.lang.String parentId
           
private  java.lang.String reifierId
           
private static long serialVersionUID
           
private  java.util.Set<java.lang.String> themeIds
           
private  java.lang.String typeId
           
private  java.lang.Object value
           
 
Constructor Summary
InMemoryReadOnlyOccurrence(de.topicmapslab.majortom.model.core.IOccurrence clone)
           
 
Method Summary
 org.tmapi.core.Locator getDatatype()
          
 java.util.Set<org.tmapi.core.Locator> getItemIdentifiers()
          
 de.topicmapslab.majortom.model.core.ITopic getParent()
          
 org.tmapi.core.Topic getReifier()
          
 de.topicmapslab.majortom.model.core.IScope getScopeObject()
          
 org.tmapi.core.Topic getType()
          
protected  java.lang.Object objectValue()
          Return the internal value of this occurrence.
 
Methods inherited from class de.topicmapslab.majortom.revision.core.ReadOnlyOccurrence
setType
 
Methods inherited from class de.topicmapslab.majortom.revision.core.ReadOnlyDatatypeAware
booleanValue, coordinateValue, dateTimeValue, decimalValue, doubleValue, floatValue, getValue, integerValue, intValue, locatorValue, longValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, surfaceValue, uriValue
 
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 de.topicmapslab.majortom.model.core.IScopable
getTopicMap
 
Methods inherited from interface de.topicmapslab.majortom.model.core.IConstruct
isRemoved, longId, remove
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface de.topicmapslab.majortom.model.core.IDatatypeAware
booleanValue, coordinateValue, dateTimeValue, doubleValue, setValue, setValue, setValue, setValue, setValue, setValue, surfaceValue, uriValue
 
Methods inherited from interface org.tmapi.core.DatatypeAware
decimalValue, floatValue, getValue, integerValue, intValue, locatorValue, longValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
 
Methods inherited from interface org.tmapi.core.Reifiable
setReifier
 
Methods inherited from interface org.tmapi.core.Scoped
addTheme, getScope, removeTheme
 
Methods inherited from interface org.tmapi.core.Construct
addItemIdentifier, equals, getId, hashCode, remove, removeItemIdentifier
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

typeId

private final java.lang.String typeId

reifierId

private final java.lang.String reifierId

parentId

private java.lang.String parentId

themeIds

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

value

private java.lang.Object value

datatype

private final org.tmapi.core.Locator datatype

cachedType

private org.tmapi.core.Topic cachedType

cachedReifier

private org.tmapi.core.Topic cachedReifier

itemIdentifiers

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

cachedParent

private de.topicmapslab.majortom.model.core.ITopic cachedParent

cachedThemes

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

InMemoryReadOnlyOccurrence

public InMemoryReadOnlyOccurrence(de.topicmapslab.majortom.model.core.IOccurrence clone)
Parameters:
clone -
Method Detail

getDatatype

public org.tmapi.core.Locator getDatatype()


objectValue

protected java.lang.Object objectValue()
Return the internal value of this occurrence.

Specified by:
objectValue in class ReadOnlyDatatypeAware
Returns:
the value as object

getItemIdentifiers

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


getType

public org.tmapi.core.Topic getType()


getReifier

public org.tmapi.core.Topic getReifier()


getParent

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


getScopeObject

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