PrintRequest

public class PrintRequest extends BaseRequest

This is an auto-generated Clover data object.

Request to print an image, text, or an image from a URL. Current intention is to only have one.

Fields

Constructors

Link copied to clipboard
public void PrintRequest()
Constructs a new empty instance.
public void PrintRequest(String json)
Constructs a new instance from the given JSON String.
public void PrintRequest(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 PrintRequest(PrintRequest 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 clearImage()
Clears the 'image' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearImageUrl()
Clears the 'imageUrl' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearPrintDeviceId()
Clears the 'printDeviceId' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearPrintRequestId()
Clears the 'printRequestId' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearRequestId()
Clears the 'requestId' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearText()
Clears the 'text' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearVersion()
Clears the 'version' 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 final int describeContents()
Link copied to clipboard
public final Bundle getBundle()
Link copied to clipboard
public List<Img> getImage()
The image to be printed (put in an array for future extensibility).
Link copied to clipboard
The image URLs to be printed (put in an array for future extensibility).
Link copied to clipboard
public abstract 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.
Link copied to clipboard
The ID of the device the print job should print from.
Link copied to clipboard
The ID associated with the request (for Status checks and similar use).
Link copied to clipboard
Identifier for the request
Link copied to clipboard
public List<String> getText()
The text to be printed.
Link copied to clipboard
Identifier for the version
Link copied to clipboard
public boolean hasImage()
Checks whether the 'image' field has been set, however the value could be null
Link copied to clipboard
public boolean hasImageUrl()
Checks whether the 'imageUrl' field has been set, however the value could be null
Link copied to clipboard
public boolean hasPrintDeviceId()
Checks whether the 'printDeviceId' field has been set, however the value could be null
Link copied to clipboard
public boolean hasPrintRequestId()
Checks whether the 'printRequestId' field has been set, however the value could be null
Link copied to clipboard
public boolean hasRequestId()
Checks whether the 'requestId' field has been set, however the value could be null
Link copied to clipboard
public boolean hasText()
Checks whether the 'text' field has been set, however the value could be null
Link copied to clipboard
public boolean hasVersion()
Checks whether the 'version' field has been set, however the value could be null
Link copied to clipboard
public boolean isNotEmptyImage()
Checks whether the 'image' field is set and is not null and is not empty
Link copied to clipboard
public boolean isNotEmptyImageUrl()
Checks whether the 'imageUrl' field is set and is not null and is not empty
Link copied to clipboard
public boolean isNotEmptyText()
Checks whether the 'text' field is set and is not null and is not empty
Link copied to clipboard
public boolean isNotNullImage()
Checks whether the 'image' field is set and is not null
Link copied to clipboard
public boolean isNotNullImageUrl()
Checks whether the 'imageUrl' field is set and is not null
Link copied to clipboard
public boolean isNotNullPrintDeviceId()
Checks whether the 'printDeviceId' field is set and is not null
Link copied to clipboard
public boolean isNotNullPrintRequestId()
Checks whether the 'printRequestId' field is set and is not null
Link copied to clipboard
public boolean isNotNullRequestId()
Checks whether the 'requestId' field is set and is not null
Link copied to clipboard
public boolean isNotNullText()
Checks whether the 'text' field is set and is not null
Link copied to clipboard
public boolean isNotNullVersion()
Checks whether the 'version' field is set and is not null
Link copied to clipboard
public void mergeChanges(BaseRequest src)
public void mergeChanges(PrintRequest 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 PrintRequest setImage(List<Img> image)
Sets the field 'image'.
Link copied to clipboard
public PrintRequest setImageUrl(List<String> imageUrl)
Sets the field 'imageUrl'.
Link copied to clipboard
public PrintRequest setPrintDeviceId(String printDeviceId)
Sets the field 'printDeviceId'.
Link copied to clipboard
public PrintRequest setPrintRequestId(String printRequestId)
Sets the field 'printRequestId'.
Link copied to clipboard
public BaseRequest setRequestId(String requestId)
Sets the field 'requestId'.
Link copied to clipboard
Sets the field 'text'.
Link copied to clipboard
public BaseRequest setVersion(Integer version)
Sets the field 'version'.
Link copied to clipboard
public final String toString()
Link copied to clipboard
public abstract void validate()
public void validate()
Link copied to clipboard
public final void writeToParcel(Parcel dest, int flags)