org.argouml.uml.reveng.java
Class ClassifierContext

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

class ClassifierContext
extends Context

This context is a specific classifier.


Field Summary
private  Object mClassifier
          The classifier this context represents.
 
Constructor Summary
ClassifierContext(Context base, Object classifier)
          Create a new context from a classifier.
 
Method Summary
 Object get(String classifierName)
          Get the classifier for a given name
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.

Constructor Detail

ClassifierContext

public ClassifierContext(Context base,
                         Object classifier)
Create a new context from a classifier.

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

getInterface

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

get

public Object get(String classifierName)
           throws ClassifierNotFoundException
Get the classifier for a given name

Specified by:
get in class Context
Parameters:
classifierName - The name of the classifier to retrieve.
Returns:
A classifier for the name.
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