Class AppUsbDevice

    • Constructor Detail

      • AppUsbDevice

        public AppUsbDevice()
        Constructs a new empty instance.
      • AppUsbDevice

        protected AppUsbDevice​(boolean noInit)
        Constructs a new empty instance.
      • 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()
      • getOpenAppMarketIfNotInstalled

        public Boolean getOpenAppMarketIfNotInstalled()
      • 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 interface JSONifiable
      • 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.