|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_ws.wsgen.GenerationContextImpl
The class GenerationContextImpl
contains properties
used along the Generation process.
Field Summary |
Fields inherited from interface org.objectweb.jonas_ws.wsgen.GenerationContext |
CLASSPATH, FILENAME, GEN_DIR, JAVA_HOME |
Constructor Summary | |
GenerationContextImpl()
Construct a new GenerationContextImpl object. |
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. |
java.lang.String |
toString()
Return a String representation of a GenerationContext. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GenerationContextImpl()
GenerationContextImpl
object.
Method Detail |
public void setProperty(java.lang.String name, java.lang.Object value)
setProperty
in interface GenerationContext
name
- property namevalue
- property valuepublic java.lang.Object getProperty(java.lang.String name, java.lang.Object defolt)
getProperty
in interface GenerationContext
name
- property namedefolt
- default property value
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface GenerationContext
name
- property name
public void removeProperty(java.lang.String name)
GenerationContext
removeProperty
in interface GenerationContext
name
- Name of the property to be removedpublic boolean containsProperty(java.lang.String name)
GenerationContext
contains a property
with the specified name.
containsProperty
in interface GenerationContext
name
- Name of the property whose presense is to be tested
GenerationContext
contains the
property{ } otherwise falsepublic java.util.Iterator getPropertyNames()
GenerationContext
getPropertyNames
in interface GenerationContext
public java.lang.String getFilename()
getFilename
in interface GenerationContext
public java.lang.String getClasspath()
getClasspath
in interface GenerationContext
public java.lang.String getJavaHomeBin()
getJavaHomeBin
in interface GenerationContext
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |