Package com.clover.sdk.v3.developer
Class DeveloperRole
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.developer.DeveloperRole
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class DeveloperRole 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
DeveloperRole.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<DeveloperRole>
CREATOR
static JSONifiable.Creator<DeveloperRole>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description DeveloperRole()
Constructs a new empty instance.protected
DeveloperRole(boolean noInit)
Constructs a new empty instance.DeveloperRole(DeveloperRole src)
Constructs a new instance that is a deep copy of the source instance.DeveloperRole(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAccounts()
Clears the 'accounts' field, the 'has' method for this field will now return falsevoid
clearDeveloperRef()
Clears the 'developerRef' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearLabel()
Clears the 'label' field, the 'has' method for this field will now return falsevoid
clearName()
Clears the 'name' field, the 'has' method for this field will now return falsevoid
clearPermissions()
Clears the 'permissions' field, the 'has' method for this field will now return falsevoid
clearSystem()
Clears the 'system' field, the 'has' method for this field will now return falsevoid
clearTemplateRole()
Clears the 'templateRole' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.DeveloperRole
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.List<Reference>
getAccounts()
Reference
getDeveloperRef()
protected GenericClient
getGenericClient()
String
getId()
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
getLabel()
String
getName()
List<Reference>
getPermissions()
Boolean
getSystem()
Reference
getTemplateRole()
boolean
hasAccounts()
Checks whether the 'accounts' field has been set, however the value could be nullboolean
hasDeveloperRef()
Checks whether the 'developerRef' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasLabel()
Checks whether the 'label' field has been set, however the value could be nullboolean
hasName()
Checks whether the 'name' field has been set, however the value could be nullboolean
hasPermissions()
Checks whether the 'permissions' field has been set, however the value could be nullboolean
hasSystem()
Checks whether the 'system' field has been set, however the value could be nullboolean
hasTemplateRole()
Checks whether the 'templateRole' field has been set, however the value could be nullboolean
isNotEmptyAccounts()
Checks whether the 'accounts' field is set and is not null and is not emptyboolean
isNotEmptyPermissions()
Checks whether the 'permissions' field is set and is not null and is not emptyboolean
isNotNullAccounts()
Checks whether the 'accounts' field is set and is not nullboolean
isNotNullDeveloperRef()
Checks whether the 'developerRef' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullLabel()
Checks whether the 'label' field is set and is not nullboolean
isNotNullName()
Checks whether the 'name' field is set and is not nullboolean
isNotNullPermissions()
Checks whether the 'permissions' field is set and is not nullboolean
isNotNullSystem()
Checks whether the 'system' field is set and is not nullboolean
isNotNullTemplateRole()
Checks whether the 'templateRole' field is set and is not nullvoid
mergeChanges(DeveloperRole 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.DeveloperRole
setAccounts(List<Reference> accounts)
Sets the field 'accounts'.DeveloperRole
setDeveloperRef(Reference developerRef)
Sets the field 'developerRef'.DeveloperRole
setId(String id)
Sets the field 'id'.DeveloperRole
setLabel(String label)
Sets the field 'label'.DeveloperRole
setName(String name)
Sets the field 'name'.DeveloperRole
setPermissions(List<Reference> permissions)
Sets the field 'permissions'.DeveloperRole
setSystem(Boolean system)
Sets the field 'system'.DeveloperRole
setTemplateRole(Reference templateRole)
Sets the field 'templateRole'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<DeveloperRole> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<DeveloperRole> JSON_CREATOR
-
-
Constructor Detail
-
DeveloperRole
public DeveloperRole()
Constructs a new empty instance.
-
DeveloperRole
protected DeveloperRole(boolean noInit)
Constructs a new empty instance.
-
DeveloperRole
public DeveloperRole(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
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()
-
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
-
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
-
setId
public DeveloperRole setId(String id)
Sets the field 'id'.
-
setName
public DeveloperRole setName(String name)
Sets the field 'name'.
-
setLabel
public DeveloperRole setLabel(String label)
Sets the field 'label'.
-
setSystem
public DeveloperRole setSystem(Boolean system)
Sets the field 'system'.
-
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.
-
-