Class VasServiceProvider

    • Constructor Detail

      • VasServiceProvider

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

        protected VasServiceProvider​(boolean noInit)
        Constructs a new empty instance.
      • VasServiceProvider

        public VasServiceProvider​(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.
      • VasServiceProvider

        public VasServiceProvider​(VasServiceProvider src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getProviderPackage

        public String getProviderPackage()
        Unique package name identifier of provider
      • getSupportedServices

        public List<VasDataType> getSupportedServices()
        Service types supported by this provider.
      • getProtocolConfig

        public Map<String,​String> getProtocolConfig()
        protocol specific configuration
      • getPushUrl

        public String getPushUrl()
        Populated for push use cases (e.g. send signup URL).
      • getPushTitle

        public String getPushTitle()
        Optionally populated for vas push use cases (e.g. send signup URL).
      • 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
      • isNotNullProviderPackage

        public boolean isNotNullProviderPackage()
        Checks whether the 'providerPackage' field is set and is not null
      • isNotNullProtocolId

        public boolean isNotNullProtocolId()
        Checks whether the 'protocolId' field is set and is not null
      • isNotNullSupportedServices

        public boolean isNotNullSupportedServices()
        Checks whether the 'supportedServices' field is set and is not null
      • isNotEmptySupportedServices

        public boolean isNotEmptySupportedServices()
        Checks whether the 'supportedServices' field is set and is not null and is not empty
      • isNotNullProtocolConfig

        public boolean isNotNullProtocolConfig()
        Checks whether the 'protocolConfig' field is set and is not null
      • isNotEmptyProtocolConfig

        public boolean isNotEmptyProtocolConfig()
        Checks whether the 'protocolConfig' field is set and is not null and is not empty
      • isNotNullPushUrl

        public boolean isNotNullPushUrl()
        Checks whether the 'pushUrl' field is set and is not null
      • isNotNullPushTitle

        public boolean isNotNullPushTitle()
        Checks whether the 'pushTitle' field is set and is not null
      • hasProviderPackage

        public boolean hasProviderPackage()
        Checks whether the 'providerPackage' field has been set, however the value could be null
      • hasProtocolId

        public boolean hasProtocolId()
        Checks whether the 'protocolId' field has been set, however the value could be null
      • hasSupportedServices

        public boolean hasSupportedServices()
        Checks whether the 'supportedServices' field has been set, however the value could be null
      • hasProtocolConfig

        public boolean hasProtocolConfig()
        Checks whether the 'protocolConfig' field has been set, however the value could be null
      • hasPushUrl

        public boolean hasPushUrl()
        Checks whether the 'pushUrl' field has been set, however the value could be null
      • hasPushTitle

        public boolean hasPushTitle()
        Checks whether the 'pushTitle' field has been set, however the value could be null
      • setProviderPackage

        public VasServiceProvider setProviderPackage​(String providerPackage)
        Sets the field 'providerPackage'.
      • setSupportedServices

        public VasServiceProvider setSupportedServices​(List<VasDataType> supportedServices)
        Sets the field 'supportedServices'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • clearProviderPackage

        public void clearProviderPackage()
        Clears the 'providerPackage' field, the 'has' method for this field will now return false
      • clearProtocolId

        public void clearProtocolId()
        Clears the 'protocolId' field, the 'has' method for this field will now return false
      • clearSupportedServices

        public void clearSupportedServices()
        Clears the 'supportedServices' field, the 'has' method for this field will now return false
      • clearProtocolConfig

        public void clearProtocolConfig()
        Clears the 'protocolConfig' field, the 'has' method for this field will now return false
      • clearPushUrl

        public void clearPushUrl()
        Clears the 'pushUrl' field, the 'has' method for this field will now return false
      • clearPushTitle

        public void clearPushTitle()
        Clears the 'pushTitle' 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 VasServiceProvider copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(VasServiceProvider src)
        Copy all the changed fields from the given source to this instance.