Class Template

java.lang.Object
com.nomagic.magicreport.Template
All Implemented Interfaces:
IObserverMessage, Serializable
Direct Known Subclasses:
ODFTemplate, OOXMLTemplate

@OpenApiAll public class Template extends Object implements IObserverMessage
This class is used for representing template and controlling template operations.
Since:
Jun 11, 2007 11:52:45 PM
Version:
1.0 Jun 11, 2007
See Also:
  • Constructor Details

    • Template

      public Template()
  • Method Details

    • getName

      public String getName()
      Return a name of template.
      Specified by:
      getName in interface IObserverMessage
      Returns:
      the name of template
    • setName

      public void setName(String name)
      Set a name of template.
      Parameters:
      name - the name to set
    • getReader

      public Reader getReader()
      Return Reader that contains the template.
      Returns:
      Reader that contains the template.
    • setReader

      public void setReader(Reader reader)
      Set Reader that contains the template.
      Parameters:
      reader - Reader that contains the template.
    • getWriter

      public Writer getWriter()
      Return Writer that contains the output.
      Returns:
      Reader that contains the template.
    • setWriter

      public void setWriter(Writer writer)
      Set Writer that contains the output.
      Parameters:
      writer - Writer that contains the output.
    • getSize

      public long getSize()
      Return a size of template.
      Returns:
      the template size
    • setSize

      public void setSize(long templateSize)
      Set a size of template.
      Parameters:
      templateSize - the template size to set
    • finalizeOutput

      public void finalizeOutput()
      Finalize the output before terminate this object.