public class ApplicationInfo
extends java.lang.Object
| Constructor and Description |
|---|
ApplicationInfo()
Empty constructor.
All internal values are instantiated as null. |
ApplicationInfo(java.lang.String name,
java.lang.String packageName,
java.lang.String versionName,
int versionCode)
Constructor with all variables.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
buildTextReport()
Builds a text report with the gathered information
|
java.lang.StringBuilder |
buildTextReport(java.lang.StringBuilder report)
Builds a text report with the gathered information
|
java.lang.String |
getName()
The application name.
|
java.lang.String |
getPackageName()
The package name of the application.
|
int |
getVersionCode()
The application version code.
|
java.lang.String |
getVersionName()
The application version name.
|
ApplicationInfo |
setName(java.lang.String name)
Sets the application name.
|
ApplicationInfo |
setPackageName(java.lang.String packageName)
Sets the package name of the application.
|
ApplicationInfo |
setVersionCode(int versionCode)
Sets the application version code
|
ApplicationInfo |
setVersionName(java.lang.String versionName)
Sets the application version name
|
public ApplicationInfo()
public ApplicationInfo(java.lang.String name,
java.lang.String packageName,
java.lang.String versionName,
int versionCode)
name - The application name (nullable).packageName - The application package name (nullable).versionName - The application versionName (nullable).public java.lang.StringBuilder buildTextReport()
public java.lang.StringBuilder buildTextReport(java.lang.StringBuilder report)
public java.lang.String getName()
public ApplicationInfo setName(java.lang.String name)
public java.lang.String getPackageName()
public ApplicationInfo setPackageName(java.lang.String packageName)
public java.lang.String getVersionName()
public ApplicationInfo setVersionName(java.lang.String versionName)
public int getVersionCode()
public ApplicationInfo setVersionCode(int versionCode)