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 LazyApplicationInfo

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

public class LazyApplicationInfo
extends java.lang.Object
implements ILazyApplicationInfo

Information provider of an office application.


Field Summary
 
Fields inherited from interface ag.ion.bion.officelayer.application.ILazyApplicationInfo
EMPTY_LAZY_APPLICATION_INFOS_ARRAY
 
Constructor Summary
LazyApplicationInfo(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

LazyApplicationInfo

public LazyApplicationInfo(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 ILazyApplicationInfo
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 ILazyApplicationInfo
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 ILazyApplicationInfo
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 ILazyApplicationInfo
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 ILazyApplicationInfo
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