org.argouml.uml.reveng.java
Class OuterClassifierContext

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

class OuterClassifierContext
extends Context

This context is an outer class containing inner classes.


Field Summary
private  Object mClassifier
          The classifier this context represents.
private  Object mPackage
          The package this classifier belongs to
private  String namePrefix
          This is appended to classname when searching in classpath.
private  String packageJavaName
          The java style name of the package.
 
Constructor Summary
OuterClassifierContext(Context base, Object theClassifier, Object thePackage, String theNamePrefix)
          Create a new context from a classifier.
 
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

mClassifier

private Object mClassifier
The classifier this context represents.


mPackage

private Object mPackage
The package this classifier belongs to


namePrefix

private String namePrefix
This is appended to classname when searching in classpath.


packageJavaName

private String packageJavaName
The java style name of the package.

Constructor Detail

OuterClassifierContext

public OuterClassifierContext(Context base,
                              Object theClassifier,
                              Object thePackage,
                              String theNamePrefix)
Create a new context from a classifier.

Parameters:
base - Based on this context.
theClassifier - The classifier.
thePackage - The package the classifier belongs to.
theNamePrefix - Inner class prefix, like "OuterClassname$"
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