de.topicmapslab.majortom.core
Class AssociationRoleImpl

java.lang.Object
  extended by de.topicmapslab.majortom.core.ConstructImpl
      extended by de.topicmapslab.majortom.core.ReifiableImpl
          extended by de.topicmapslab.majortom.core.AssociationRoleImpl
All Implemented Interfaces:
de.topicmapslab.majortom.model.core.IAssociationRole, de.topicmapslab.majortom.model.core.IConstruct, de.topicmapslab.majortom.model.core.IReifiable, 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.Reifiable, org.tmapi.core.Role, org.tmapi.core.Typed

public class AssociationRoleImpl
extends ReifiableImpl
implements de.topicmapslab.majortom.model.core.IAssociationRole

Base implementation of IAssociationRole

Author:
Sven Krosse
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
protected AssociationRoleImpl(de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity identity, de.topicmapslab.majortom.model.core.IAssociation parent)
          constructor
 
Method Summary
 de.topicmapslab.majortom.model.core.IAssociation getParent()
          
 org.tmapi.core.Topic getPlayer()
          
 org.tmapi.core.Topic getType()
          
 void setPlayer(org.tmapi.core.Topic player)
          
 void setType(org.tmapi.core.Topic type)
          
 java.lang.String toString()
          
 
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, 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.Reifiable
getReifier, setReifier
 
Methods inherited from interface de.topicmapslab.majortom.model.core.IConstruct
getTopicMap, 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

AssociationRoleImpl

protected AssociationRoleImpl(de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity identity,
                              de.topicmapslab.majortom.model.core.IAssociation parent)
constructor

Parameters:
identity - the ITopicMapStoreIdentity
parent - the parent construct
Method Detail

getParent

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

Specified by:
getParent in interface de.topicmapslab.majortom.model.core.IAssociationRole
Specified by:
getParent in interface org.tmapi.core.Construct
Specified by:
getParent in interface org.tmapi.core.Role
Overrides:
getParent in class ConstructImpl

getPlayer

public org.tmapi.core.Topic getPlayer()

Specified by:
getPlayer in interface org.tmapi.core.Role

setPlayer

public void setPlayer(org.tmapi.core.Topic player)

Specified by:
setPlayer in interface org.tmapi.core.Role

setType

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

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

getType

public org.tmapi.core.Topic getType()

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

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object