public class Application extends Object
Constructor and Description |
---|
Application(org.dom4j.Element subTreeRoot,
XmlStructure parentSettings,
Parameters param,
String targetEncoding)
A application is the program to be run on a machine.
|
Modifier and Type | Method and Description |
---|---|
void |
createSettingsFile(File directory)
Creates the settings file for this application.
|
String |
getIdentification()
Uses the name and the optional applicationId to create an unique identification for this application.
|
Parameters |
getMachineParameters()
For acquiring the machine parameter variable.
|
XmlStructure |
getSettings()
Returns the settings XML subtree for the application.
|
String[] |
getSettingsValues(String[] path)
For acquiring all the values of the leafs at the end of the path.
|
String |
getTotalName() |
String |
installPathLinux()
Makes the install path with linux syntax.
|
String |
installPathWindows()
Makes the install path with windows syntax.
|
boolean |
isBundledHarvester()
Detects whether this is a Harvester app, which requires a harvester bundle to be deployed.
|
public Application(org.dom4j.Element subTreeRoot, XmlStructure parentSettings, Parameters param, String targetEncoding)
subTreeRoot
- The root of this instance in the XML document.parentSettings
- The setting inherited by the parent.param
- The machine parameters inherited by the parent.targetEncoding
- the encoding to use when writing files.public String getIdentification()
public String getTotalName()
public void createSettingsFile(File directory)
directory
- The directory where the settings file should be placed.public String installPathLinux()
public String installPathWindows()
public Parameters getMachineParameters()
public String[] getSettingsValues(String[] path)
path
- The path to the branches.public XmlStructure getSettings()
public boolean isBundledHarvester()
true if the is a harvester requiring a harvester bundle, else false
.
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.