com.aspose.omr

Class GenerationResult



  • 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).

    • Method Detail

      • getTemplateImage

        public final BufferedImage getTemplateImage()

        Gets or sets the generated Template Image

      • setTemplateImage

        public final void setTemplateImage(BufferedImage value)

        Gets or sets the generated Template Image

      • getTemplate

        public final String getTemplate()

        Gets the Template JSON string

        Returns:
        the Template JSON string
      • setTemplate

        public final void setTemplate(String value)

        Sets the Template JSON string

        Parameters:
        value - the Template JSON string
      • getErrorCode

        public final int getErrorCode()

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

        Returns:
        the error code
      • setErrorCode

        public final void setErrorCode(int value)

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

        Parameters:
        value - the error code
      • getErrorMessage

        public final String getErrorMessage()

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

        Returns:
        the message describing error
      • setErrorMessage

        public final void setErrorMessage(String value)

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

        Parameters:
        value - the message describing error
      • getWarnings

        public final List<String> getWarnings()

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

      • setWarnings

        public final void setWarnings(List<String> value)

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

      • save

        public final void save(String folder,
                               String name)

        Save template image and template to the specified folder

        Parameters:
        folder - Destination folder
        name - Name of the template