Class Parameters


  • public class Parameters
    extends Object
    The Parameters class contains the machine parameters. These are the user name, the install directory and the parameters for running the Java applications. These are inherited from the parent entity (e.g. the machine inherits the Parameters from the PhysicalLocation), then overwrites its own specified variables.
    • Constructor Detail

      • Parameters

        public Parameters​(XmlStructure root)
                   throws ArgumentNotValid
        Constructor. Retrieves the parameters from the XML tree.
        Parameters:
        root - The root of the branch for the parent instance. This retrieves the variables in the branch.
        Throws:
        ArgumentNotValid - If the root is null.
      • Parameters

        public Parameters​(Parameters parent)
                   throws ArgumentNotValid
        Constructor. Inherits the parameters of the parent instance.
        Parameters:
        parent - The parameters of the parent instance.
        Throws:
        ArgumentNotValid - If the parent is null.
    • Method Detail

      • newParameters

        public void newParameters​(org.dom4j.Element root)
                           throws ArgumentNotValid
        Overwrites the inherited parameters, if the root has new specified.
        Parameters:
        root - The root of the current instance.
        Throws:
        ArgumentNotValid - If the root is null.
      • writeJavaOptions

        public String writeJavaOptions()
        Makes all the java options into a single String.
        Returns:
        All the java options.
      • getInstallDirValue

        public String getInstallDirValue()
        For retrieving the install directory parameter.
        Returns:
        The install directory element, or empty string if install dir is null.
      • getHarvestDatabaseDirValue

        public String getHarvestDatabaseDirValue()
        For retrieving the directory for the database.
        Returns:
        The database directory element, or empty string if install dir is null.
      • getArchiveDatabaseDirValue

        public String getArchiveDatabaseDirValue()
        For retrieving the directory for the archive database.
        Returns:
        The archive database install directory element, or empty string if install dir is null.
      • getMachineUserName

        public org.dom4j.Element getMachineUserName()
        For retrieving the machine user name parameter.
        Returns:
        The machine user name.
      • getClassPaths

        public List<org.dom4j.Element> getClassPaths()
        For retrieving the list of class paths.
        Returns:
        The list of class paths.