public class AppTracking extends GenericParcelable implements Validator, JSONifiable
Used to track the origin of a distributed call.
Modifier and Type | Class and Description |
---|---|
static interface |
AppTracking.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<AppTracking> |
CREATOR |
static JSONifiable.Creator<AppTracking> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
AppTracking()
Constructs a new empty instance.
|
|
AppTracking(AppTracking src)
Constructs a new instance that is a deep copy of the source instance.
|
protected |
AppTracking(boolean noInit)
Constructs a new empty instance.
|
|
AppTracking(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be
reflected in this instance and vice-versa.
|
|
AppTracking(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearApplicationID()
Clears the 'applicationID' field, the 'has' method for this field will now return false
|
void |
clearApplicationName()
Clears the 'applicationName' field, the 'has' method for this field will now return false
|
void |
clearApplicationVersion()
Clears the 'applicationVersion' field, the 'has' method for this field will now return false
|
void |
clearDeveloperAppId()
Clears the 'developerAppId' field, the 'has' method for this field will now return false
|
void |
clearSourceSDK()
Clears the 'sourceSDK' field, the 'has' method for this field will now return false
|
void |
clearSourceSDKVersion()
Clears the 'sourceSDKVersion' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
AppTracking |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
String |
getApplicationID()
A string representing an application
|
String |
getApplicationName()
The name of the developer application.
|
String |
getApplicationVersion()
A string representing a semanticversion.
|
String |
getDeveloperAppId()
The uuid from the developer application.
|
protected GenericClient |
getGenericClient() |
JSONObject |
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be
reflected in this instance and vice-versa.
|
String |
getSourceSDK()
A string representing a SDK
|
String |
getSourceSDKVersion()
A string representing a semanticversion.
|
boolean |
hasApplicationID()
Checks whether the 'applicationID' field has been set, however the value could be null
|
boolean |
hasApplicationName()
Checks whether the 'applicationName' field has been set, however the value could be null
|
boolean |
hasApplicationVersion()
Checks whether the 'applicationVersion' field has been set, however the value could be null
|
boolean |
hasDeveloperAppId()
Checks whether the 'developerAppId' field has been set, however the value could be null
|
boolean |
hasSourceSDK()
Checks whether the 'sourceSDK' field has been set, however the value could be null
|
boolean |
hasSourceSDKVersion()
Checks whether the 'sourceSDKVersion' field has been set, however the value could be null
|
boolean |
isNotNullApplicationID()
Checks whether the 'applicationID' field is set and is not null
|
boolean |
isNotNullApplicationName()
Checks whether the 'applicationName' field is set and is not null
|
boolean |
isNotNullApplicationVersion()
Checks whether the 'applicationVersion' field is set and is not null
|
boolean |
isNotNullDeveloperAppId()
Checks whether the 'developerAppId' field is set and is not null
|
boolean |
isNotNullSourceSDK()
Checks whether the 'sourceSDK' field is set and is not null
|
boolean |
isNotNullSourceSDKVersion()
Checks whether the 'sourceSDKVersion' field is set and is not null
|
void |
mergeChanges(AppTracking src)
Copy all the changed fields from the given source to this instance.
|
void |
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
|
AppTracking |
setApplicationID(String applicationID)
Sets the field 'applicationID'.
|
AppTracking |
setApplicationName(String applicationName)
Sets the field 'applicationName'.
|
AppTracking |
setApplicationVersion(String applicationVersion)
Sets the field 'applicationVersion'.
|
AppTracking |
setDeveloperAppId(String developerAppId)
Sets the field 'developerAppId'.
|
AppTracking |
setSourceSDK(String sourceSDK)
Sets the field 'sourceSDK'.
|
AppTracking |
setSourceSDKVersion(String sourceSDKVersion)
Sets the field 'sourceSDKVersion'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<AppTracking> CREATOR
public static final JSONifiable.Creator<AppTracking> JSON_CREATOR
public AppTracking()
protected AppTracking(boolean noInit)
public AppTracking(String json) throws IllegalArgumentException
IllegalArgumentException
public AppTracking(JSONObject jsonObject)
public AppTracking(AppTracking src)
public String getDeveloperAppId()
public String getApplicationName()
public String getApplicationID()
public String getApplicationVersion()
public String getSourceSDK()
public String getSourceSDKVersion()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullDeveloperAppId()
public boolean isNotNullApplicationName()
public boolean isNotNullApplicationID()
public boolean isNotNullApplicationVersion()
public boolean isNotNullSourceSDK()
public boolean isNotNullSourceSDKVersion()
public boolean hasDeveloperAppId()
public boolean hasApplicationName()
public boolean hasApplicationID()
public boolean hasApplicationVersion()
public boolean hasSourceSDK()
public boolean hasSourceSDKVersion()
public AppTracking setDeveloperAppId(String developerAppId)
public AppTracking setApplicationName(String applicationName)
public AppTracking setApplicationID(String applicationID)
public AppTracking setApplicationVersion(String applicationVersion)
public AppTracking setSourceSDK(String sourceSDK)
public AppTracking setSourceSDKVersion(String sourceSDKVersion)
public void clearDeveloperAppId()
public void clearApplicationName()
public void clearApplicationID()
public void clearApplicationVersion()
public void clearSourceSDK()
public void clearSourceSDKVersion()
public boolean containsChanges()
public void resetChangeLog()
public AppTracking copyChanges()
public void mergeChanges(AppTracking src)