de.topicmapslab.majortom.revision.core
Class ReadOnlyAssociation

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
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
Direct Known Subclasses:
InMemoryReadOnlyAssociation, JdbcReadOnlyAssociation

public abstract class ReadOnlyAssociation
extends ReadOnlyScopable
implements de.topicmapslab.majortom.model.core.IAssociation

Author:
Sven Krosse
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
ReadOnlyAssociation(de.topicmapslab.majortom.model.core.IAssociation clone)
           
 
Method Summary
 org.tmapi.core.Role createRole(org.tmapi.core.Topic arg0, org.tmapi.core.Topic arg1)
          
 de.topicmapslab.majortom.model.core.ITopicMap getParent()
          
 java.util.Set<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic arg0)
          
 java.util.Set<org.tmapi.core.Topic> getRoleTypes()
          
 void setType(org.tmapi.core.Topic arg0)
          
 
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.Association
getRoles
 
Methods inherited from interface org.tmapi.core.Typed
getType
 
Methods inherited from interface org.tmapi.core.Reifiable
getReifier, setReifier
 
Methods inherited from interface de.topicmapslab.majortom.model.core.IScopable
getScopeObject, 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, getItemIdentifiers, 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

ReadOnlyAssociation

public ReadOnlyAssociation(de.topicmapslab.majortom.model.core.IAssociation clone)
Parameters:
clone -
Method Detail

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

createRole

public org.tmapi.core.Role createRole(org.tmapi.core.Topic arg0,
                                      org.tmapi.core.Topic arg1)
                               throws org.tmapi.core.ModelConstraintException

Specified by:
createRole in interface org.tmapi.core.Association
Throws:
org.tmapi.core.ModelConstraintException

getRoleTypes

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

Specified by:
getRoleTypes in interface org.tmapi.core.Association

getRoles

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

Specified by:
getRoles in interface org.tmapi.core.Association

setType

public void setType(org.tmapi.core.Topic arg0)

Specified by:
setType in interface org.tmapi.core.Typed