|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.uml.generator.GeneratorHelper
public final class GeneratorHelper
Provides some utility methods for code generation.
| Method Summary | |
|---|---|
static java.util.Collection |
generate(Language lang,
java.util.Collection elements,
boolean deps)
Generate code for one or more elements in a given language. |
static java.util.Collection |
generate(Language lang,
java.lang.Object elem,
boolean deps)
Generate code for a single element. |
static Language |
makeLanguage(java.lang.String theName)
Creates a language with title equal to the name and no icon. |
static Language |
makeLanguage(java.lang.String theName,
javax.swing.Icon theIcon)
Creates a language with title equal to the name. |
static Language |
makeLanguage(java.lang.String theName,
java.lang.String theTitle)
Creates a language with no icon. |
static Language |
makeLanguage(java.lang.String theName,
java.lang.String theTitle,
javax.swing.Icon theIcon)
Creates a new Language only if one with the same name doesn't already exist in GeneratorManager, in which case that one is returned. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.Collection generate(Language lang,
java.util.Collection elements,
boolean deps)
lang - The language to use.elements - The elements to generate code for.deps - Whether to generate dependency too.
public static java.util.Collection generate(Language lang,
java.lang.Object elem,
boolean deps)
lang - The language to use.elem - The element to generate code for.deps - Whether to generate dependency too.
public static Language makeLanguage(java.lang.String theName,
java.lang.String theTitle,
javax.swing.Icon theIcon)
theName - The name of the language.theTitle - A string representing the language for display.theIcon - An icon for the language.
public static Language makeLanguage(java.lang.String theName,
java.lang.String theTitle)
theName - The name of the language.theTitle - A string representing the language for display.
makeLanguage(String, String, Icon)
public static Language makeLanguage(java.lang.String theName,
javax.swing.Icon theIcon)
theName - The name of the language.theIcon - An icon for the language.
makeLanguage(String, String, Icon)public static Language makeLanguage(java.lang.String theName)
theName - The name of the language.
makeLanguage(String, String, Icon)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |