public class Generator
extends java.lang.Object
Constructor and Description |
---|
Generator(AoSession aoSession)
Creates a new instance of Generator
|
Modifier and Type | Method and Description |
---|---|
void |
generateElement(ApplicationElement ae,
java.io.File dir) |
void |
generateElements(ApplicationStructure asObj,
java.io.File dir) |
java.lang.String |
getAttributeDesc(ApplicationAttribute aa) |
static java.lang.String |
getBackgroundColor(java.lang.String beName) |
static java.lang.String |
getForegroundColor(java.lang.String beName) |
java.lang.String |
getSecurityLevel(ApplicationElement ae) |
void |
run()
Start the generation process.
|
void |
setConfiguration(DOTConfiguration configuration)
Set the options string.
|
void |
setFile(java.io.File file)
Set the file to be written.
|
void |
setHandler(OutputHandler handler)
Set the output handler for generator.
|
public Generator(AoSession aoSession)
public void setFile(java.io.File file)
file
- the file.public void setConfiguration(DOTConfiguration configuration)
options.
- public void setHandler(OutputHandler handler)
public void run() throws java.io.IOException, AoException
java.io.IOException
AoException
public void generateElements(ApplicationStructure asObj, java.io.File dir) throws AoException, java.io.IOException
AoException
java.io.IOException
public void generateElement(ApplicationElement ae, java.io.File dir) throws AoException, java.io.IOException
AoException
java.io.IOException
public java.lang.String getAttributeDesc(ApplicationAttribute aa) throws AoException
AoException
public java.lang.String getSecurityLevel(ApplicationElement ae) throws AoException
AoException
public static java.lang.String getBackgroundColor(java.lang.String beName)
public static java.lang.String getForegroundColor(java.lang.String beName)