Package com.macrofocus.application
Class SimpleApplicationModel
- java.lang.Object
-
- com.macrofocus.application.SimpleApplicationModel
-
- All Implemented Interfaces:
ApplicationModel
,java.io.Serializable
public class SimpleApplicationModel extends java.lang.Object implements ApplicationModel, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleApplicationModel(java.lang.String name, java.lang.String edition, VersionModel versionModel, java.lang.Class mainClass, java.lang.String copyright)
SimpleApplicationModel(java.lang.String name, java.lang.String edition, VersionModel versionModel, java.lang.String mainClassName, java.lang.String copyright, LicenseModel.Validity validity, LicenseModel.Expiration expiration)
SimpleApplicationModel(java.lang.String name, java.lang.String edition, java.lang.String version, java.lang.Class mainClass, java.lang.String copyright)
SimpleApplicationModel(java.lang.String name, java.lang.String edition, java.lang.String version, java.lang.String mainClassName, java.lang.String copyright, LicenseModel.Validity validity, LicenseModel.Expiration expiration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCopyright()
java.lang.String
getEdition()
Gets the edition name of this applicationLicenseModel.Expiration
getExpiration()
LicenseModel
getLicenseModel()
java.lang.Class
getMainClass()
java.lang.String
getName()
Gets the name of this applicationLicenseModel.Validity
getValidity()
java.lang.String
getVersion()
Gets the version number of this applicationVersionModel
getVersionModel()
void
setLicenseModel(LicenseModel licenseModel)
java.lang.String
toString()
-
-
-
Constructor Detail
-
SimpleApplicationModel
public SimpleApplicationModel(java.lang.String name, java.lang.String edition, VersionModel versionModel, java.lang.Class mainClass, java.lang.String copyright)
-
SimpleApplicationModel
public SimpleApplicationModel(java.lang.String name, java.lang.String edition, java.lang.String version, java.lang.Class mainClass, java.lang.String copyright)
-
SimpleApplicationModel
public SimpleApplicationModel(java.lang.String name, java.lang.String edition, java.lang.String version, java.lang.String mainClassName, java.lang.String copyright, LicenseModel.Validity validity, LicenseModel.Expiration expiration)
-
SimpleApplicationModel
public SimpleApplicationModel(java.lang.String name, java.lang.String edition, VersionModel versionModel, java.lang.String mainClassName, java.lang.String copyright, LicenseModel.Validity validity, LicenseModel.Expiration expiration)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:ApplicationModel
Gets the name of this application- Specified by:
getName
in interfaceApplicationModel
- Returns:
- the name of the application
-
getEdition
public java.lang.String getEdition()
Description copied from interface:ApplicationModel
Gets the edition name of this application- Specified by:
getEdition
in interfaceApplicationModel
- Returns:
- the edition name of the application
-
getVersionModel
public VersionModel getVersionModel()
- Specified by:
getVersionModel
in interfaceApplicationModel
-
getVersion
public java.lang.String getVersion()
Description copied from interface:ApplicationModel
Gets the version number of this application- Specified by:
getVersion
in interfaceApplicationModel
- Returns:
- the version number of this application
-
getCopyright
public java.lang.String getCopyright()
- Specified by:
getCopyright
in interfaceApplicationModel
-
getMainClass
public java.lang.Class getMainClass()
- Specified by:
getMainClass
in interfaceApplicationModel
-
getValidity
public LicenseModel.Validity getValidity()
- Specified by:
getValidity
in interfaceApplicationModel
-
getExpiration
public LicenseModel.Expiration getExpiration()
- Specified by:
getExpiration
in interfaceApplicationModel
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getLicenseModel
public LicenseModel getLicenseModel()
- Specified by:
getLicenseModel
in interfaceApplicationModel
-
setLicenseModel
public void setLicenseModel(LicenseModel licenseModel)
- Specified by:
setLicenseModel
in interfaceApplicationModel
-
-