public class DeveloperRole extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
DeveloperRole.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<DeveloperRole> |
CREATOR |
static JSONifiable.Creator<DeveloperRole> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and 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(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(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAccounts()
Clears the 'accounts' field, the 'has' method for this field will now return false
|
void |
clearDeveloperRef()
Clears the 'developerRef' field, the 'has' method for this field will now return false
|
void |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearLabel()
Clears the 'label' field, the 'has' method for this field will now return false
|
void |
clearName()
Clears the 'name' field, the 'has' method for this field will now return false
|
void |
clearPermissions()
Clears the 'permissions' field, the 'has' method for this field will now return false
|
void |
clearSystem()
Clears the 'system' field, the 'has' method for this field will now return false
|
void |
clearTemplateRole()
Clears the 'templateRole' field, the 'has' method for this field will now return false
|
boolean |
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 null
|
boolean |
hasDeveloperRef()
Checks whether the 'developerRef' field has been set, however the value could be null
|
boolean |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasLabel()
Checks whether the 'label' field has been set, however the value could be null
|
boolean |
hasName()
Checks whether the 'name' field has been set, however the value could be null
|
boolean |
hasPermissions()
Checks whether the 'permissions' field has been set, however the value could be null
|
boolean |
hasSystem()
Checks whether the 'system' field has been set, however the value could be null
|
boolean |
hasTemplateRole()
Checks whether the 'templateRole' field has been set, however the value could be null
|
boolean |
isNotEmptyAccounts()
Checks whether the 'accounts' field is set and is not null and is not empty
|
boolean |
isNotEmptyPermissions()
Checks whether the 'permissions' field is set and is not null and is not empty
|
boolean |
isNotNullAccounts()
Checks whether the 'accounts' field is set and is not null
|
boolean |
isNotNullDeveloperRef()
Checks whether the 'developerRef' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullLabel()
Checks whether the 'label' field is set and is not null
|
boolean |
isNotNullName()
Checks whether the 'name' field is set and is not null
|
boolean |
isNotNullPermissions()
Checks whether the 'permissions' field is set and is not null
|
boolean |
isNotNullSystem()
Checks whether the 'system' field is set and is not null
|
boolean |
isNotNullTemplateRole()
Checks whether the 'templateRole' field is set and is not null
|
void |
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() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<DeveloperRole> CREATOR
public static final JSONifiable.Creator<DeveloperRole> JSON_CREATOR
public DeveloperRole()
protected DeveloperRole(boolean noInit)
public DeveloperRole(String json) throws IllegalArgumentException
IllegalArgumentException
public DeveloperRole(JSONObject jsonObject)
public DeveloperRole(DeveloperRole src)
public String getId()
public String getName()
public String getLabel()
public Boolean getSystem()
public Reference getTemplateRole()
public Reference getDeveloperRef()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullName()
public boolean isNotNullLabel()
public boolean isNotNullSystem()
public boolean isNotNullTemplateRole()
public boolean isNotNullAccounts()
public boolean isNotEmptyAccounts()
public boolean isNotNullPermissions()
public boolean isNotEmptyPermissions()
public boolean isNotNullDeveloperRef()
public boolean hasId()
public boolean hasName()
public boolean hasLabel()
public boolean hasSystem()
public boolean hasTemplateRole()
public boolean hasAccounts()
public boolean hasPermissions()
public boolean hasDeveloperRef()
public DeveloperRole setId(String id)
public DeveloperRole setName(String name)
public DeveloperRole setLabel(String label)
public DeveloperRole setSystem(Boolean system)
public DeveloperRole setTemplateRole(Reference templateRole)
public DeveloperRole setAccounts(List<Reference> accounts)
public DeveloperRole setPermissions(List<Reference> permissions)
public DeveloperRole setDeveloperRef(Reference developerRef)
public void clearId()
public void clearName()
public void clearLabel()
public void clearSystem()
public void clearTemplateRole()
public void clearAccounts()
public void clearPermissions()
public void clearDeveloperRef()
public boolean containsChanges()
public void resetChangeLog()
public DeveloperRole copyChanges()
public void mergeChanges(DeveloperRole src)