UML.Code
Class Package

java.lang.Object
  |
  +--UML.Code.Package

public class Package
extends java.lang.Object

Package class represent an imported package for the Java class for which code is generated.


Constructor Summary
Package()
          Constructor.
 
Method Summary
 void add(Package pack)
          Adds a sub-package to this package.
 java.lang.String getCode()
          Gets the code for the class that imports this package.
 java.lang.String getName()
          Gets the name of the package.
 java.lang.String getSubPackages()
          Gets a string representing the imported sub-packages.
 void setName(java.lang.String name)
          Sets the name of the package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Package

public Package()
Constructor.

Method Detail

setName

public void setName(java.lang.String name)
Sets the name of the package.


getName

public java.lang.String getName()
Gets the name of the package.

Returns:
name the name of the package.

add

public void add(Package pack)
Adds a sub-package to this package.


getCode

public java.lang.String getCode()
Gets the code for the class that imports this package.

Returns:
code the generated code.

getSubPackages

public java.lang.String getSubPackages()
Gets a string representing the imported sub-packages.

Returns:
subpackages the imported sub-packages.