org.argouml.uml.reveng.java
Class Context

java.lang.Object
  |
  +--org.argouml.uml.reveng.java.Context
Direct Known Subclasses:
ClassifierContext, OuterClassifierContext, PackageContext

abstract class Context
extends java.lang.Object

The context is the current available namespaces via import in the class that is currently parsed. It is non mutable and a new context can be based on the current context with an additional namespace.


Field Summary
protected  Context context
          The succeding context.
 
Constructor Summary
Context(Context base)
          Create a new context.
 
Method Summary
abstract  java.lang.Object get(java.lang.String name)
          Get a classifier from the model.
abstract  java.lang.Object getInterface(java.lang.String name)
           
protected  java.lang.String getJavaName(java.lang.Object mPackage)
          Get the complete java name for a package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected Context context
The succeding context. May be null.

Constructor Detail

Context

public Context(Context base)
Create a new context.

Parameters:
base - Based on this context, may be null.
Method Detail

get

public abstract java.lang.Object get(java.lang.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.

Returns:
Found classifier.
ClassifierNotFoundException

getInterface

public abstract java.lang.Object getInterface(java.lang.String name)
                                       throws ClassifierNotFoundException
ClassifierNotFoundException

getJavaName

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

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


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