JFCML - JFC/Swing
XML Markup Language

com.metasolutions.jfcml.helpers
Class PackageList

java.lang.Object
  extended by com.metasolutions.jfcml.helpers.PackageList
All Implemented Interfaces:
Serializable

public class PackageList
extends Object
implements Serializable

This class maintins the list of currently imported package names.

Version:
0.9, Oct 31, 2004
Author:
Shawn Curry
See Also:
Serialized Form

Constructor Summary
PackageList()
           
 
Method Summary
 void addPackage(String pkg)
          Adds a package name to the list.
 void addPackages(String[] pkgs)
          Adds an array of package names to the list.
 Class findClass(String name)
           
 void flushImports()
          Clears the list of any packages which have been imported.
 SimpleStack getPackages()
          Gets the raw list of package names.
 void importClass(String qualifiedName)
           
 void importPackage(String pkg)
          Adds a package name to the list, and marks it as imported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageList

public PackageList()
Method Detail

findClass

public Class findClass(String name)

importPackage

public void importPackage(String pkg)
Adds a package name to the list, and marks it as imported. Because it is marked as imported, it is possible to clear this package name by calling flushImports.

Parameters:
pkg - The name of the package.

importClass

public void importClass(String qualifiedName)

flushImports

public void flushImports()
Clears the list of any packages which have been imported.


addPackage

public void addPackage(String pkg)
Adds a package name to the list. This package name is *not* marked as imported, therefore it is *not* possible to clear this package name by calling flushImports.

Parameters:
pkg - The name of the package.

addPackages

public void addPackages(String[] pkgs)
Adds an array of package names to the list.

Parameters:
packages - Array of package names.

getPackages

public SimpleStack getPackages()
Gets the raw list of package names.

Returns:
the package list.

SourceForge.net
java.net

Copyright 2004-2005 Shawn Curry, http://jfcml.sourceforge.net
Licensed under the Academic Free License version 2.1