Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013

ag.ion.bion.officelayer.internal.application
Class ApplicationInfo

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.application.ApplicationInfo
All Implemented Interfaces:
IApplicationInfo

public class ApplicationInfo
extends java.lang.Object
implements IApplicationInfo

Information provider of an office application.


Field Summary
 
Fields inherited from interface ag.ion.bion.officelayer.application.IApplicationInfo
EMPTY_APPLICATION_INFOS_ARRAY
 
Constructor Summary
ApplicationInfo(java.lang.String home, IApplicationProperties applicationProperties)
          Constructs new ApplicationInfo.
 
Method Summary
 java.lang.String getHome()
          Returns home of the office application.
 int getMajorVersion()
          Returns major version of the office application.
 int getMinorVersion()
          Returns minor version of the office application.
 IApplicationProperties getProperties()
          Returns properties of the office application.
 int getUpdateVersion()
          Returns update version of the office application.
 void setVersion(int major, int minor, int update)
          Sets version of the office application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationInfo

public ApplicationInfo(java.lang.String home,
                       IApplicationProperties applicationProperties)
                throws java.lang.IllegalArgumentException
Constructs new ApplicationInfo.

Parameters:
home - home of the office application to be used
applicationProperties - application properties to be used
Throws:
java.lang.IllegalArgumentException - if the submitted home path is not valid
Method Detail

setVersion

public void setVersion(int major,
                       int minor,
                       int update)
Sets version of the office application.

Parameters:
major - major version to be used
minor - minor version to be used
update - update version to be used

getHome

public java.lang.String getHome()
Returns home of the office application.

Specified by:
getHome in interface IApplicationInfo
Returns:
home of the office application

getProperties

public IApplicationProperties getProperties()
Returns properties of the office application. The properties will be invetigated from the bootstrap.ini file. Returns null if the properties are not available.

Specified by:
getProperties in interface IApplicationInfo
Returns:
properties of the office application or null if the properties are not available

getMajorVersion

public int getMajorVersion()
Returns major version of the office application. Returns -1 if the major version is not available.

Specified by:
getMajorVersion in interface IApplicationInfo
Returns:
major version of the office application or -1 if the major version is not available

getMinorVersion

public int getMinorVersion()
Returns minor version of the office application. Returns -1 if the minor version is not available.

Specified by:
getMinorVersion in interface IApplicationInfo
Returns:
minor version of the office application or -1 if the minor version is not available

getUpdateVersion

public int getUpdateVersion()
Returns update version of the office application. Returns -1 if the update version is not available.

Specified by:
getUpdateVersion in interface IApplicationInfo
Returns:
update version of the office application or -1 if the update version is not available

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013