GenerationResult

Inheritance: java.lang.Object

public class GenerationResult

The result of the template generation. Contains the template image and the template (json that describes elements location on the image).

Methods

MethodDescription
equals(Object arg0)
getClass()
getErrorCode()Gets or sets the error code.
getErrorMessage()Gets or sets the message describing error.
getTemplate()Gets the Template JSON string
getTemplateImage()Gets or sets the generated Template Image
getWarnings()Gets or sets list of the warnings messages describing non-critical faults appeared during generation
hashCode()
notify()
notifyAll()
save(String folder, String name)Save template image and template to the specified folder
setErrorCode(int value)Gets or sets the error code.
setErrorMessage(String value)Gets or sets the message describing error.
setTemplate(String value)Sets the Template JSON string
setTemplateImage(BufferedImage value)Gets or sets the generated Template Image
setWarnings(List value)Gets or sets list of the warnings messages describing non-critical faults appeared during generation
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getErrorCode()

public final int getErrorCode()

Gets or sets the error code. Equals 0 if no errors occured.

Returns: int - the error code

getErrorMessage()

public final String getErrorMessage()

Gets or sets the message describing error. Empty if no errors occured.

Returns: java.lang.String - the message describing error

getTemplate()

public final String getTemplate()

Gets the Template JSON string

Returns: java.lang.String - the Template JSON string

getTemplateImage()

public final BufferedImage getTemplateImage()

Gets or sets the generated Template Image

Returns: java.awt.image.BufferedImage

getWarnings()

public final List<String> getWarnings()

Gets or sets list of the warnings messages describing non-critical faults appeared during generation

Returns: java.util.List<java.lang.String>

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

save(String folder, String name)

public final void save(String folder, String name)

Save template image and template to the specified folder

Parameters:

ParameterTypeDescription
folderjava.lang.StringDestination folder
namejava.lang.StringName of the template

setErrorCode(int value)

public final void setErrorCode(int value)

Gets or sets the error code. Equals 0 if no errors occured.

Parameters:

ParameterTypeDescription
valueintthe error code

setErrorMessage(String value)

public final void setErrorMessage(String value)

Gets or sets the message describing error. Empty if no errors occured.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringthe message describing error

setTemplate(String value)

public final void setTemplate(String value)

Sets the Template JSON string

Parameters:

ParameterTypeDescription
valuejava.lang.Stringthe Template JSON string

setTemplateImage(BufferedImage value)

public final void setTemplateImage(BufferedImage value)

Gets or sets the generated Template Image

Parameters:

ParameterTypeDescription
valuejava.awt.image.BufferedImage

setWarnings(List value)

public final void setWarnings(List<String> value)

Gets or sets list of the warnings messages describing non-critical faults appeared during generation

Parameters:

ParameterTypeDescription
valuejava.util.List<java.lang.String>

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int