org.devaki.nextobjects.workspace.models.objects
Class AssociationLink

java.lang.Object
  extended byorg.devaki.nextobjects.workspace.models.objects.BaseObject
      extended byorg.devaki.nextobjects.workspace.models.objects.BaseLine
          extended byorg.devaki.nextobjects.workspace.models.objects.AssociationLink
All Implemented Interfaces:
java.io.Serializable

public class AssociationLink
extends BaseLine
implements java.io.Serializable

This class describe an association link

Author:
Emmanuel Florent
See Also:
Serialized Form

Constructor Summary
AssociationLink(Association pAssociation, Entity pEntity, int pCard)
          Create a new 'AssociationLink' object while dragging
AssociationLink(AssociationLink pObject)
          Clone an 'AssociationLink' object
 
Method Summary
 int getCard()
          Get the cardinality
 ObjectView getObjectView()
          get the associationLinkView
 void setCard(int pCard)
          Set the cardinality
 
Methods inherited from class org.devaki.nextobjects.workspace.models.objects.BaseLine
getChildClass, getParentClass, setChildClass, setParentClass
 
Methods inherited from class org.devaki.nextobjects.workspace.models.objects.BaseObject
getCode, getColumns, getData, getDataChanged, getDescription, getDynamicTreeNode, getMyModel, getName, getNotes, resetModelStatus, setCode, setColumns, setDataChanged, setDescription, setDynamicTreeNode, setMyModel, setName, setNotes, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssociationLink

public AssociationLink(Association pAssociation,
                       Entity pEntity,
                       int pCard)
Create a new 'AssociationLink' object while dragging

Parameters:
pAssociation - the new association
pEntity - the linked entity
pCard - the cardinality of the relation

AssociationLink

public AssociationLink(AssociationLink pObject)
Clone an 'AssociationLink' object

Parameters:
pObject - the association link to clone
Method Detail

getCard

public final int getCard()
Get the cardinality

Returns:
the cardianlity of the half association.

setCard

public final void setCard(int pCard)
Set the cardinality

Parameters:
pCard - the cardinality

getObjectView

public final ObjectView getObjectView()
get the associationLinkView

Specified by:
getObjectView in class BaseLine
Returns:
associationLinkView


Copyright © 2002-2004 devaki.org. All Rights Reserved.