public class GenerationResult extends Object
The result of the template generation. Contains the template image and the template (json that describes elements location on the image).
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Gets or sets the error code.
|
String |
getErrorMessage()
Gets or sets the message describing error.
|
String |
getTemplate()
Gets the Template JSON string
|
BufferedImage |
getTemplateImage()
Gets or sets the generated Template Image
|
List<String> |
getWarnings()
Gets or sets list of the warnings messages describing non-critical faults appeared during generation
|
void |
save(String folder,
String name)
Save template image and template to the specified folder
|
void |
setErrorCode(int value)
Gets or sets the error code.
|
void |
setErrorMessage(String value)
Gets or sets the message describing error.
|
void |
setTemplate(String value)
Sets the Template JSON string
|
void |
setTemplateImage(BufferedImage value)
Gets or sets the generated Template Image
|
void |
setWarnings(List<String> value)
Gets or sets list of the warnings messages describing non-critical faults appeared during generation
|
public final BufferedImage getTemplateImage()
Gets or sets the generated Template Image
public final void setTemplateImage(BufferedImage value)
Gets or sets the generated Template Image
public final String getTemplate()
Gets the Template JSON string
public final void setTemplate(String value)
Sets the Template JSON string
value
- the Template JSON stringpublic final int getErrorCode()
Gets or sets the error code. Equals 0 if no errors occured.
public final void setErrorCode(int value)
Gets or sets the error code. Equals 0 if no errors occured.
value
- the error codepublic final String getErrorMessage()
Gets or sets the message describing error. Empty if no errors occured.
public final void setErrorMessage(String value)
Gets or sets the message describing error. Empty if no errors occured.
value
- the message describing errorpublic final List<String> getWarnings()
Gets or sets list of the warnings messages describing non-critical faults appeared during generation
public final void setWarnings(List<String> value)
Gets or sets list of the warnings messages describing non-critical faults appeared during generation