|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.kernel.InstallationOptions
Installation is a combination metadata and installation flags for a particular component. Typical Usage Inside a Component:
Creating an Installation Options:
InstallationOptions returnOptions = new InstallationOptions();
InstallationMetadata newMetadata = returnOptions.createNewMetadata();
newMetadata.setName("Test");
newMetadata.setDefaultValue(Boolean.TRUE);
newMetadata.setType("java.lang.Boolean");
returnOptions.addMetaData(newMetadata);
return returnOptions;
//In the installation section
Boolean deleteTables = installOptions.getInstallOption("Test");
if (deleteTables.booleanValue()) {
//Do some stuff
}
| Nested Class Summary | |
class |
InstallationOptions.InstallationMetadata
This class provides metadata about any options available. |
| Field Summary | |
protected Map |
installValues
All the installation values keyed by the metadata |
protected Map |
nameMetadataMap
A map for mapping names to metdata |
| Constructor Summary | |
InstallationOptions()
|
|
| Method Summary | |
void |
addMetaData(InstallationOptions.InstallationMetadata metadata)
Called by the Installable implementation to add a filled out
metadata object to the Install Options |
InstallationOptions.InstallationMetadata |
createNewMetadata(String name,
Object defaultValue)
Kind of a factory method. |
Set |
getAllInstallNames()
|
Map |
getAllInstallValues()
|
Object |
getInstallOption(String name)
Retrieves the installation option keyed by name. |
void |
setInstallOption(String name,
Object newValue)
Sets the given install option by name |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Map installValues
protected Map nameMetadataMap
| Constructor Detail |
public InstallationOptions()
| Method Detail |
public InstallationOptions.InstallationMetadata createNewMetadata(String name,
Object defaultValue)
public void addMetaData(InstallationOptions.InstallationMetadata metadata)
Installable implementation to add a filled out
metadata object to the Install Options
metadata - the Created and populated metadata
public void setInstallOption(String name,
Object newValue)
name - the name of the installation objectnewValue - the value to set it to.public Object getInstallOption(String name)
name - the name of the install option
public Map getAllInstallValues()
public Set getAllInstallNames()
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||