Package com.clover.sdk.v3.apps
Class AppUsbDevice
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.apps.AppUsbDevice
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class AppUsbDevice extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AppUsbDevice.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<AppUsbDevice>
CREATOR
static JSONifiable.Creator<AppUsbDevice>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description AppUsbDevice()
Constructs a new empty instance.protected
AppUsbDevice(boolean noInit)
Constructs a new empty instance.AppUsbDevice(AppUsbDevice src)
Constructs a new instance that is a deep copy of the source instance.AppUsbDevice(String json)
Constructs a new instance from the given JSON String.AppUsbDevice(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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearApp()
Clears the 'app' field, the 'has' method for this field will now return falsevoid
clearOpenAppMarketIfNotInstalled()
Clears the 'openAppMarketIfNotInstalled' field, the 'has' method for this field will now return falsevoid
clearPackageName()
Clears the 'packageName' field, the 'has' method for this field will now return falsevoid
clearProductId()
Clears the 'productId' field, the 'has' method for this field will now return falsevoid
clearVendorId()
Clears the 'vendorId' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.AppUsbDevice
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Reference
getApp()
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.Boolean
getOpenAppMarketIfNotInstalled()
String
getPackageName()
Integer
getProductId()
Integer
getVendorId()
boolean
hasApp()
Checks whether the 'app' field has been set, however the value could be nullboolean
hasOpenAppMarketIfNotInstalled()
Checks whether the 'openAppMarketIfNotInstalled' field has been set, however the value could be nullboolean
hasPackageName()
Checks whether the 'packageName' field has been set, however the value could be nullboolean
hasProductId()
Checks whether the 'productId' field has been set, however the value could be nullboolean
hasVendorId()
Checks whether the 'vendorId' field has been set, however the value could be nullboolean
isNotNullApp()
Checks whether the 'app' field is set and is not nullboolean
isNotNullOpenAppMarketIfNotInstalled()
Checks whether the 'openAppMarketIfNotInstalled' field is set and is not nullboolean
isNotNullPackageName()
Checks whether the 'packageName' field is set and is not nullboolean
isNotNullProductId()
Checks whether the 'productId' field is set and is not nullboolean
isNotNullVendorId()
Checks whether the 'vendorId' field is set and is not nullvoid
mergeChanges(AppUsbDevice 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.AppUsbDevice
setApp(Reference app)
Sets the field 'app'.AppUsbDevice
setOpenAppMarketIfNotInstalled(Boolean openAppMarketIfNotInstalled)
Sets the field 'openAppMarketIfNotInstalled'.AppUsbDevice
setPackageName(String packageName)
Sets the field 'packageName'.AppUsbDevice
setProductId(Integer productId)
Sets the field 'productId'.AppUsbDevice
setVendorId(Integer vendorId)
Sets the field 'vendorId'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<AppUsbDevice> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<AppUsbDevice> JSON_CREATOR
-
-
Constructor Detail
-
AppUsbDevice
public AppUsbDevice()
Constructs a new empty instance.
-
AppUsbDevice
protected AppUsbDevice(boolean noInit)
Constructs a new empty instance.
-
AppUsbDevice
public AppUsbDevice(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
AppUsbDevice
public AppUsbDevice(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.
-
AppUsbDevice
public AppUsbDevice(AppUsbDevice src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getPackageName
public String getPackageName()
-
getVendorId
public Integer getVendorId()
-
getProductId
public Integer getProductId()
-
getApp
public Reference getApp()
-
getOpenAppMarketIfNotInstalled
public Boolean getOpenAppMarketIfNotInstalled()
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public 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.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullPackageName
public boolean isNotNullPackageName()
Checks whether the 'packageName' field is set and is not null
-
isNotNullVendorId
public boolean isNotNullVendorId()
Checks whether the 'vendorId' field is set and is not null
-
isNotNullProductId
public boolean isNotNullProductId()
Checks whether the 'productId' field is set and is not null
-
isNotNullApp
public boolean isNotNullApp()
Checks whether the 'app' field is set and is not null
-
isNotNullOpenAppMarketIfNotInstalled
public boolean isNotNullOpenAppMarketIfNotInstalled()
Checks whether the 'openAppMarketIfNotInstalled' field is set and is not null
-
hasPackageName
public boolean hasPackageName()
Checks whether the 'packageName' field has been set, however the value could be null
-
hasVendorId
public boolean hasVendorId()
Checks whether the 'vendorId' field has been set, however the value could be null
-
hasProductId
public boolean hasProductId()
Checks whether the 'productId' field has been set, however the value could be null
-
hasApp
public boolean hasApp()
Checks whether the 'app' field has been set, however the value could be null
-
hasOpenAppMarketIfNotInstalled
public boolean hasOpenAppMarketIfNotInstalled()
Checks whether the 'openAppMarketIfNotInstalled' field has been set, however the value could be null
-
setPackageName
public AppUsbDevice setPackageName(String packageName)
Sets the field 'packageName'.
-
setVendorId
public AppUsbDevice setVendorId(Integer vendorId)
Sets the field 'vendorId'.
-
setProductId
public AppUsbDevice setProductId(Integer productId)
Sets the field 'productId'.
-
setApp
public AppUsbDevice setApp(Reference app)
Sets the field 'app'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setOpenAppMarketIfNotInstalled
public AppUsbDevice setOpenAppMarketIfNotInstalled(Boolean openAppMarketIfNotInstalled)
Sets the field 'openAppMarketIfNotInstalled'.
-
clearPackageName
public void clearPackageName()
Clears the 'packageName' field, the 'has' method for this field will now return false
-
clearVendorId
public void clearVendorId()
Clears the 'vendorId' field, the 'has' method for this field will now return false
-
clearProductId
public void clearProductId()
Clears the 'productId' field, the 'has' method for this field will now return false
-
clearApp
public void clearApp()
Clears the 'app' field, the 'has' method for this field will now return false
-
clearOpenAppMarketIfNotInstalled
public void clearOpenAppMarketIfNotInstalled()
Clears the 'openAppMarketIfNotInstalled' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public AppUsbDevice copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(AppUsbDevice src)
Copy all the changed fields from the given source to this instance.
-
-