Class DeveloperRole

    • Constructor Detail

      • DeveloperRole

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

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

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

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

      • getId

        public String getId()
      • getName

        public String getName()
      • getLabel

        public String getLabel()
      • getSystem

        public Boolean getSystem()
      • getTemplateRole

        public Reference getTemplateRole()
      • getDeveloperRef

        public Reference getDeveloperRef()
      • 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
      • isNotNullId

        public boolean isNotNullId()
        Checks whether the 'id' field is set and is not null
      • isNotNullName

        public boolean isNotNullName()
        Checks whether the 'name' field is set and is not null
      • isNotNullLabel

        public boolean isNotNullLabel()
        Checks whether the 'label' field is set and is not null
      • isNotNullSystem

        public boolean isNotNullSystem()
        Checks whether the 'system' field is set and is not null
      • isNotNullTemplateRole

        public boolean isNotNullTemplateRole()
        Checks whether the 'templateRole' field is set and is not null
      • isNotNullAccounts

        public boolean isNotNullAccounts()
        Checks whether the 'accounts' field is set and is not null
      • isNotEmptyAccounts

        public boolean isNotEmptyAccounts()
        Checks whether the 'accounts' field is set and is not null and is not empty
      • isNotNullPermissions

        public boolean isNotNullPermissions()
        Checks whether the 'permissions' field is set and is not null
      • isNotEmptyPermissions

        public boolean isNotEmptyPermissions()
        Checks whether the 'permissions' field is set and is not null and is not empty
      • isNotNullDeveloperRef

        public boolean isNotNullDeveloperRef()
        Checks whether the 'developerRef' field is set and is not null
      • hasId

        public boolean hasId()
        Checks whether the 'id' field has been set, however the value could be null
      • hasName

        public boolean hasName()
        Checks whether the 'name' field has been set, however the value could be null
      • hasLabel

        public boolean hasLabel()
        Checks whether the 'label' field has been set, however the value could be null
      • hasSystem

        public boolean hasSystem()
        Checks whether the 'system' field has been set, however the value could be null
      • hasTemplateRole

        public boolean hasTemplateRole()
        Checks whether the 'templateRole' field has been set, however the value could be null
      • hasAccounts

        public boolean hasAccounts()
        Checks whether the 'accounts' field has been set, however the value could be null
      • hasPermissions

        public boolean hasPermissions()
        Checks whether the 'permissions' field has been set, however the value could be null
      • hasDeveloperRef

        public boolean hasDeveloperRef()
        Checks whether the 'developerRef' field has been set, however the value could be null
      • setTemplateRole

        public DeveloperRole setTemplateRole​(Reference templateRole)
        Sets the field 'templateRole'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setAccounts

        public DeveloperRole setAccounts​(List<Reference> accounts)
        Sets the field 'accounts'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • setPermissions

        public DeveloperRole setPermissions​(List<Reference> permissions)
        Sets the field 'permissions'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • setDeveloperRef

        public DeveloperRole setDeveloperRef​(Reference developerRef)
        Sets the field 'developerRef'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • clearId

        public void clearId()
        Clears the 'id' field, the 'has' method for this field will now return false
      • clearName

        public void clearName()
        Clears the 'name' field, the 'has' method for this field will now return false
      • clearLabel

        public void clearLabel()
        Clears the 'label' field, the 'has' method for this field will now return false
      • clearSystem

        public void clearSystem()
        Clears the 'system' field, the 'has' method for this field will now return false
      • clearTemplateRole

        public void clearTemplateRole()
        Clears the 'templateRole' field, the 'has' method for this field will now return false
      • clearAccounts

        public void clearAccounts()
        Clears the 'accounts' field, the 'has' method for this field will now return false
      • clearPermissions

        public void clearPermissions()
        Clears the 'permissions' field, the 'has' method for this field will now return false
      • clearDeveloperRef

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

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