ch.elca.dependency.graph
Class Layer

java.lang.Object
  |
  +--ch.elca.dependency.graph.Layer

public class Layer
extends java.lang.Object

This class represents an architectural Layer withing analyzed software. It is used by the class LayerOrder to find packages and the Layers they belong to.

Version:
1.0-beta
Author:
Pawel Kowalski

Field Summary
static Layer UNASSIGNED
          A default Layer used for nodes not belonging to a particular Layer.
 
Constructor Summary
Layer()
          Creates a new Layer instance.
Layer(java.lang.String name)
          Creates a new Layer instance.
 
Method Summary
 void addPackage(java.lang.String packageName)
          Add a new package name that belongs to this Layer.
 java.lang.String getName()
          Get the name of this Layer.
 java.lang.String[] getPackages()
          Get a package associated with this Layer.
 void removePackage(java.lang.String packageName)
          Remove a package from this Layer.
 void setName(java.lang.String name)
          Set the name of this Layer.
 void setPackages(java.lang.String[] packages)
          Set packages that belong to this Layer.
 java.lang.String toString()
          Returns the String representation of a Layer instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNASSIGNED

public static final Layer UNASSIGNED
A default Layer used for nodes not belonging to a particular Layer.

Constructor Detail

Layer

public Layer()
Creates a new Layer instance.


Layer

public Layer(java.lang.String name)
Creates a new Layer instance.

Parameters:
name - a String value
Method Detail

setName

public void setName(java.lang.String name)
Set the name of this Layer.

Parameters:
name - a String value

getName

public java.lang.String getName()
Get the name of this Layer.

Returns:
a String value

addPackage

public void addPackage(java.lang.String packageName)
Add a new package name that belongs to this Layer.

Parameters:
packageName - a String value

removePackage

public void removePackage(java.lang.String packageName)
Remove a package from this Layer.

Parameters:
packageName - a String value

getPackages

public java.lang.String[] getPackages()
Get a package associated with this Layer.

Returns:
a String[] value

setPackages

public void setPackages(java.lang.String[] packages)
Set packages that belong to this Layer.

Parameters:
packages - a String[] value

toString

public java.lang.String toString()
Returns the String representation of a Layer instance

Overrides:
toString in class java.lang.Object
Returns:
a String value


Copyright © 2003 ELCA Informatique SA. All Rights Reserved.