de.topicmapslab.majortom.core
Class ScopeableImpl

java.lang.Object
  extended by de.topicmapslab.majortom.core.ConstructImpl
      extended by de.topicmapslab.majortom.core.ReifiableImpl
          extended by de.topicmapslab.majortom.core.ScopeableImpl
All Implemented Interfaces:
de.topicmapslab.majortom.model.core.IConstruct, de.topicmapslab.majortom.model.core.IReifiable, de.topicmapslab.majortom.model.core.IScopable, java.io.Serializable, java.lang.Comparable<de.topicmapslab.majortom.model.core.IConstruct>, org.tmapi.core.Construct, org.tmapi.core.Reifiable, org.tmapi.core.Scoped
Direct Known Subclasses:
AssociationImpl, DataTypeAwareImpl, NameImpl

public abstract class ScopeableImpl
extends ReifiableImpl
implements de.topicmapslab.majortom.model.core.IScopable

Base implementation of IScopable.

Author:
Sven Krosse
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
protected ScopeableImpl(de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity identity, de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.IConstruct parent)
          constructor
 
Method Summary
 void addTheme(org.tmapi.core.Topic theme)
          
 java.util.Set<org.tmapi.core.Topic> getScope()
          
 de.topicmapslab.majortom.model.core.IScope getScopeObject()
          
 void removeTheme(org.tmapi.core.Topic theme)
          
 
Methods inherited from class de.topicmapslab.majortom.core.ReifiableImpl
getReifier, setReifier
 
Methods inherited from class de.topicmapslab.majortom.core.ConstructImpl
addItemIdentifier, compareTo, equals, getId, getIdentity, getItemIdentifiers, getParent, 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 org.tmapi.core.Construct
addItemIdentifier, equals, getId, getItemIdentifiers, getParent, hashCode, remove, removeItemIdentifier
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ScopeableImpl

protected ScopeableImpl(de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity identity,
                        de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                        de.topicmapslab.majortom.model.core.IConstruct parent)
constructor

Parameters:
identity - the ITopicMapStoreIdentity
topicMap - the topic map
parent - the parent construct
Method Detail

getScopeObject

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

Specified by:
getScopeObject in interface de.topicmapslab.majortom.model.core.IScopable

addTheme

public void addTheme(org.tmapi.core.Topic theme)
              throws org.tmapi.core.ModelConstraintException

Specified by:
addTheme in interface org.tmapi.core.Scoped
Throws:
org.tmapi.core.ModelConstraintException

getScope

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

Specified by:
getScope in interface org.tmapi.core.Scoped

removeTheme

public void removeTheme(org.tmapi.core.Topic theme)

Specified by:
removeTheme in interface org.tmapi.core.Scoped