|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface GenerationContext
contains properties
used along the Generation process.
Field Summary | |
static java.lang.String |
CLASSPATH
classpath property name |
static java.lang.String |
FILENAME
filename property name |
static java.lang.String |
GEN_DIR
generation dir property name |
static java.lang.String |
JAVA_HOME
$JAVA_HOME/bin property name |
Method Summary | |
boolean |
containsProperty(java.lang.String name)
Returns true if the GenerationContext contains a property
with the specified name. |
java.lang.String |
getClasspath()
Helper method returning the classpath. |
java.lang.String |
getFilename()
Helper method returning the processed filename. |
java.lang.String |
getJavaHomeBin()
Helper method returning the $JAVA_HOME/bin value. |
java.lang.Object |
getProperty(java.lang.String name)
Get an property, return the property value or null if the property isn't set. |
java.lang.Object |
getProperty(java.lang.String name,
java.lang.Object defolt)
Get an property, return the property value or default if the property isn't set. |
java.util.Iterator |
getPropertyNames()
Returns an Iterator view of the names of the properties in this GenerationContext |
void |
removeProperty(java.lang.String name)
Removes a property (name-value pair) from the GenerationContext |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Set a property for generation. |
Field Detail |
public static final java.lang.String FILENAME
public static final java.lang.String CLASSPATH
public static final java.lang.String GEN_DIR
public static final java.lang.String JAVA_HOME
Method Detail |
public void setProperty(java.lang.String name, java.lang.Object value)
name
- property namevalue
- property valuepublic java.lang.Object getProperty(java.lang.String name, java.lang.Object defolt)
name
- property namedefolt
- property value
public java.lang.Object getProperty(java.lang.String name)
name
- property name
public void removeProperty(java.lang.String name)
GenerationContext
name
- Name of the property to be removedpublic boolean containsProperty(java.lang.String name)
GenerationContext
contains a property
with the specified name.
name
- Name of the property whose presense is to be tested
GenerationContext
contains the
property; otherwise falsepublic java.util.Iterator getPropertyNames()
GenerationContext
public java.lang.String getFilename()
public java.lang.String getClasspath()
public java.lang.String getJavaHomeBin()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |