venice
Interface VPackage

All Superinterfaces:
VModelElement
All Known Implementing Classes:
ZPackage

public interface VPackage
extends VModelElement

VPackage is a visual component representing a package in the software architecture. A package has childs which are other model elements including other components, interfaces and other packages.

Author:
Hannu Laurila

Field Summary
static int CLOSED
           
static int OPEN
           
static int TRANSPARENT
           
 
Method Summary
 void addVChild(VModelElement inElem)
          Adds a modelelement to be children of this package.
 boolean getShowContent()
          Get current status of package content visibility
 int getState()
          Tells the state of this package.
 VModelElement[] getVChildren()
          returns an array consisting of contents of the package
 void removeVChild(VModelElement inElem)
          removes a child from the package
 void setShowContent(boolean inState)
          sets the status of package content visibility
 void setState(int inState)
          Sets the state of the package.
 
Methods inherited from interface venice.VModelElement
addRelationship, addToCompositeRelationshipList, debugDump, getCompositeRelationships, getId, getName, getRelationshipConnectPoint, getRelationships, getType, getVisible, getVParent, intersectWithLine, setName, setType, setVisible
 

Field Detail

CLOSED

public static final int CLOSED

OPEN

public static final int OPEN

TRANSPARENT

public static final int TRANSPARENT
Method Detail

addVChild

public void addVChild(VModelElement inElem)
Adds a modelelement to be children of this package. The model element is visualized to be inside the package.

getShowContent

public boolean getShowContent()
Get current status of package content visibility
Returns:
true if contents of the package is shown, false otherwise.

getVChildren

public VModelElement[] getVChildren()
returns an array consisting of contents of the package

removeVChild

public void removeVChild(VModelElement inElem)
removes a child from the package

setShowContent

public void setShowContent(boolean inState)
sets the status of package content visibility

setState

public void setState(int inState)
Sets the state of the package. State can be either CLOSED, OPEN or TRANSPARENT.

getState

public int getState()
Tells the state of this package.