org.argouml.uml.reveng.java
Class PackageContext

java.lang.Object
  extended byorg.argouml.uml.reveng.java.Context
      extended byorg.argouml.uml.reveng.java.PackageContext

class PackageContext
extends Context

This context is a package.


Field Summary
private  String javaName
          The java style name of the package.
private  Object mPackage
          The package this context represents.
 
Constructor Summary
PackageContext(Context base, Object thePackage)
          Create a new context from a package.
 
Method Summary
 Object get(String name)
          Get a classifier from the model.
protected  Context getContext()
           
 Object getInterface(String name)
           
protected  String getJavaName(Object mPackage)
          Get the complete java name for a package.
protected  void setContext(Context c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mPackage

private Object mPackage
The package this context represents.


javaName

private String javaName
The java style name of the package.

Constructor Detail

PackageContext

public PackageContext(Context base,
                      Object thePackage)
Create a new context from a package.

Parameters:
base - Based on this context.
thePackage - Represents this package.
Method Detail

getInterface

public Object getInterface(String name)
                    throws ClassifierNotFoundException
Specified by:
getInterface in class Context
Throws:
ClassifierNotFoundException

get

public Object get(String name)
           throws ClassifierNotFoundException
Get a classifier from the model. If it is not in the model, try to find it with the CLASSPATH. If found, in the classpath, the classifier is created and added to the model. If not found at all, a datatype is created and added to the model.

Specified by:
get in class Context
Parameters:
name - The name of the classifier to find.
Returns:
Found classifier.
Throws:
ClassifierNotFoundException

getJavaName

protected String getJavaName(Object mPackage)
Get the complete java name for a package.

Parameters:
mPackage - The package.
Returns:
Package name in java format

setContext

protected void setContext(Context c)
Parameters:
c - The context to set.

getContext

protected Context getContext()
Returns:
Returns the context.


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook