com.deltaxml.odf
Class OdfVersionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.deltaxml.odf.OdfException
              extended by com.deltaxml.odf.OdfLicensingException
                  extended by com.deltaxml.odf.OdfVersionException
All Implemented Interfaces:
Serializable

public class OdfVersionException
extends OdfLicensingException

An exception indicating that the license used to activate the software does not support the version being used.

An activation key or license contains a version number which enables the operation of this and previous versions of the DeltaXML product. The licensed version number is usually in the format: major.minor for example 1.3. A license with this version number will allow operation of this and earlier releases. It will also allow operation of bug fix releases such as 1.3.1, 1.3.2 etc

See Also:
Serialized Form

Constructor Summary
OdfVersionException(String product, String licensedVersion, String currentVersion)
          Constructs a new OdfVersionException with a default message
OdfVersionException(String message, String product, String licensedVersion, String currentVersion)
          Constructs a new OdfVersionException with a configurable message
 
Method Summary
 String getCurrentVersion()
          Reports the version of the ODF software currently in use.
 String getLicensedVersion()
          Reports the software version number which the current license supports.
 
Methods inherited from class com.deltaxml.odf.OdfLicensingException
getProduct
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OdfVersionException

public OdfVersionException(String product,
                           String licensedVersion,
                           String currentVersion)
Constructs a new OdfVersionException with a default message

Parameters:
product - the ODF product for which the license version is unsupported
licensedVersion - the version specified in the license
currentVersion - the version of the software currently in use

OdfVersionException

public OdfVersionException(String message,
                           String product,
                           String licensedVersion,
                           String currentVersion)
Constructs a new OdfVersionException with a configurable message

Parameters:
message - the exception message
product - the ODF product for which the license version is unsupported
licensedVersion - the version specified in the license
currentVersion - the version of the software currently in use
Method Detail

getLicensedVersion

public String getLicensedVersion()
Reports the software version number which the current license supports.

Returns:
the licensed version as a String in the format major.minor

getCurrentVersion

public String getCurrentVersion()
Reports the version of the ODF software currently in use.

Returns:
the current version as a String in the format major.minor or major.minor.bug


© 2001-2009 DeltaXML Ltd. All Rights Reserved.