Modification

public class Modification extends GenericParcelable implements Validator, JSONifiable

This is an auto-generated Clover data object.

Snapshot of a line item modifier at the time that the order was placed.

Fields

See also

Constructors

Link copied to clipboard
public void Modification()
Constructs a new empty instance.
public void Modification(String json)
Constructs a new instance from the given JSON String.
public void Modification(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.
public void Modification(Modification src)
Constructs a new instance that is a deep copy of the source instance.

Types

Link copied to clipboard
public interface Constraints

Properties

Link copied to clipboard
public final static int CONTENTS_FILE_DESCRIPTOR
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final static int PARCELABLE_WRITE_RETURN_VALUE

Functions

Link copied to clipboard
public void clearAlternateName()
Clears the 'alternateName' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearAmount()
Clears the 'amount' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearModifier()
Clears the 'modifier' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearName()
Clears the 'name' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearQuantitySold()
Clears the 'quantitySold' field, the 'has' method for this field will now return false
Link copied to clipboard
public boolean containsChanges()
Returns true if this instance has any changes.
Link copied to clipboard
Create a copy of this instance that contains only fields that were set after the constructor was called.
Link copied to clipboard
public abstract int describeContents()
public final int describeContents()
Link copied to clipboard
Link copied to clipboard
public Long getAmount()
the additional cost of the modifier when it was applied
Link copied to clipboard
public final Bundle getBundle()
Gets a Bundle which can be used to get and set data attached to this instance.
Link copied to clipboard
public String getId()
Link copied to clipboard
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.
Link copied to clipboard
The modifier object.
Link copied to clipboard
public String getName()
the name of the modifier when it was applied
Link copied to clipboard
This is only used in reports.
Link copied to clipboard
public boolean hasAlternateName()
Checks whether the 'alternateName' field has been set, however the value could be null
Link copied to clipboard
public boolean hasAmount()
Checks whether the 'amount' field has been set, however the value could be null
Link copied to clipboard
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
Link copied to clipboard
public boolean hasModifier()
Checks whether the 'modifier' field has been set, however the value could be null
Link copied to clipboard
public boolean hasName()
Checks whether the 'name' field has been set, however the value could be null
Link copied to clipboard
public boolean hasQuantitySold()
Checks whether the 'quantitySold' field has been set, however the value could be null
Link copied to clipboard
public boolean isNotNullAlternateName()
Checks whether the 'alternateName' field is set and is not null
Link copied to clipboard
public boolean isNotNullAmount()
Checks whether the 'amount' field is set and is not null
Link copied to clipboard
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
Link copied to clipboard
public boolean isNotNullModifier()
Checks whether the 'modifier' field is set and is not null
Link copied to clipboard
public boolean isNotNullName()
Checks whether the 'name' field is set and is not null
Link copied to clipboard
public boolean isNotNullQuantitySold()
Checks whether the 'quantitySold' field is set and is not null
Link copied to clipboard
public void mergeChanges(Modification src)
Copy all the changed fields from the given source to this instance.
Link copied to clipboard
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
Link copied to clipboard
public Modification setAlternateName(String alternateName)
Sets the field 'alternateName'.
Link copied to clipboard
public Modification setAmount(Long amount)
Sets the field 'amount'.
Link copied to clipboard
Sets the field 'id'.
Link copied to clipboard
public Modification setModifier(Modifier modifier)
Sets the field 'modifier'.
Link copied to clipboard
public Modification setName(String name)
Sets the field 'name'.
Link copied to clipboard
public Modification setQuantitySold(Long quantitySold)
Sets the field 'quantitySold'.
Link copied to clipboard
public final String toString()
Link copied to clipboard
public void validate()
Link copied to clipboard
public abstract void writeToParcel(Parcel p, int p1)
public final void writeToParcel(Parcel dest, int flags)