public class IdentityDocument extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
IdentityDocument.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<IdentityDocument> |
CREATOR |
static JSONifiable.Creator<IdentityDocument> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
IdentityDocument()
Constructs a new empty instance.
|
protected |
IdentityDocument(boolean noInit)
Constructs a new empty instance.
|
|
IdentityDocument(IdentityDocument src)
Constructs a new instance that is a deep copy of the source instance.
|
|
IdentityDocument(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.
|
|
IdentityDocument(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
|
void |
clearDeletedTime()
Clears the 'deletedTime' 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 |
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
|
void |
clearNumber()
Clears the 'number' field, the 'has' method for this field will now return false
|
void |
clearPayment()
Clears the 'payment' field, the 'has' method for this field will now return false
|
void |
clearType()
Clears the 'type' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
IdentityDocument |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Long |
getCreatedTime()
Created timestamp.
|
Long |
getDeletedTime()
Deleted timestamp.
|
protected GenericClient |
getGenericClient() |
String |
getId()
Unique identifier
|
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.
|
Long |
getModifiedTime()
Modified timestamp.
|
String |
getNumber()
The identification number
|
Reference |
getPayment() |
String |
getType()
Type of personal identification: National Document, Passport, etc
|
boolean |
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
|
boolean |
hasDeletedTime()
Checks whether the 'deletedTime' 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 |
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
|
boolean |
hasNumber()
Checks whether the 'number' field has been set, however the value could be null
|
boolean |
hasPayment()
Checks whether the 'payment' field has been set, however the value could be null
|
boolean |
hasType()
Checks whether the 'type' field has been set, however the value could be null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
boolean |
isNotNullNumber()
Checks whether the 'number' field is set and is not null
|
boolean |
isNotNullPayment()
Checks whether the 'payment' field is set and is not null
|
boolean |
isNotNullType()
Checks whether the 'type' field is set and is not null
|
void |
mergeChanges(IdentityDocument 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.
|
IdentityDocument |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
IdentityDocument |
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
|
IdentityDocument |
setId(String id)
Sets the field 'id'.
|
IdentityDocument |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
IdentityDocument |
setNumber(String number)
Sets the field 'number'.
|
IdentityDocument |
setPayment(Reference payment)
Sets the field 'payment'.
|
IdentityDocument |
setType(String type)
Sets the field 'type'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<IdentityDocument> CREATOR
public static final JSONifiable.Creator<IdentityDocument> JSON_CREATOR
public IdentityDocument()
protected IdentityDocument(boolean noInit)
public IdentityDocument(String json) throws IllegalArgumentException
IllegalArgumentException
public IdentityDocument(JSONObject jsonObject)
public IdentityDocument(IdentityDocument src)
public String getId()
public String getType()
public String getNumber()
public Long getCreatedTime()
public Long getModifiedTime()
public Long getDeletedTime()
public Reference getPayment()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullType()
public boolean isNotNullNumber()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullDeletedTime()
public boolean isNotNullPayment()
public boolean hasId()
public boolean hasType()
public boolean hasNumber()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public boolean hasDeletedTime()
public boolean hasPayment()
public IdentityDocument setId(String id)
public IdentityDocument setType(String type)
public IdentityDocument setNumber(String number)
public IdentityDocument setCreatedTime(Long createdTime)
public IdentityDocument setModifiedTime(Long modifiedTime)
public IdentityDocument setDeletedTime(Long deletedTime)
public IdentityDocument setPayment(Reference payment)
public void clearId()
public void clearType()
public void clearNumber()
public void clearCreatedTime()
public void clearModifiedTime()
public void clearDeletedTime()
public void clearPayment()
public boolean containsChanges()
public void resetChangeLog()
public IdentityDocument copyChanges()
public void mergeChanges(IdentityDocument src)