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

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.InheritanceLink
All Implemented Interfaces:
java.io.Serializable

public class InheritanceLink
extends BaseLine
implements java.io.Serializable

the inheritance links

Author:
Emmanuel Florent
See Also:
Serialized Form

Constructor Summary
InheritanceLink(BaseModel pModel, BaseClass pChildClass, BaseClass pParentClass)
          Constructor
InheritanceLink(BaseModel pModel, java.lang.String sChildClass, java.lang.String sParentClass)
          Constructor
InheritanceLink(InheritanceLink pObject)
          Clone a new 'Inheritance Link' object
 
Method Summary
 java.lang.String getKey()
          get the primary Key of the Child Class
 ObjectView getObjectView()
          Get the InheritanceLinkView
 void setChildClass(java.lang.String pClassAsString)
          Set the child class by its code
 void setKey(java.lang.String pString)
          Set the primary key
 void setParentClass(java.lang.String pClassAsString)
          Set the child class by StringName
 
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

InheritanceLink

public InheritanceLink(BaseModel pModel,
                       BaseClass pChildClass,
                       BaseClass pParentClass)
Constructor

Parameters:
pModel - the context model
pChildClass - the children class
pParentClass - the base class

InheritanceLink

public InheritanceLink(BaseModel pModel,
                       java.lang.String sChildClass,
                       java.lang.String sParentClass)
Constructor

Parameters:
pModel - the context model
sChildClass - the name of the children class
sParentClass - the name of the base class

InheritanceLink

public InheritanceLink(InheritanceLink pObject)
Clone a new 'Inheritance Link' object

Parameters:
pObject - the link to clone
Method Detail

getKey

public final java.lang.String getKey()
get the primary Key of the Child Class

Returns:
the primary key

setKey

public final void setKey(java.lang.String pString)
Set the primary key

Parameters:
pString - the child class primary key

setChildClass

public final void setChildClass(java.lang.String pClassAsString)
Set the child class by its code

Parameters:
pClassAsString - class code

setParentClass

public final void setParentClass(java.lang.String pClassAsString)
Set the child class by StringName

Parameters:
pClassAsString - parent'xs class code

getObjectView

public final ObjectView getObjectView()
Get the InheritanceLinkView

Specified by:
getObjectView in class BaseLine
Returns:
InheritanceLinkView


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