Package com.nomagic.magicreport
Class Template
java.lang.Object
com.nomagic.magicreport.Template
- All Implemented Interfaces:
IObserverMessage,Serializable
- Direct Known Subclasses:
ODFTemplate,OOXMLTemplate
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFinalize the output before terminate this object.getName()Return a name of template.Return Reader that contains the template.longgetSize()Return a size of template.Return Writer that contains the output.voidSet a name of template.voidSet Reader that contains the template.voidsetSize(long templateSize) Set a size of template.voidSet Writer that contains the output.
-
Constructor Details
-
Template
public Template()
-
-
Method Details
-
getName
Return a name of template.- Specified by:
getNamein interfaceIObserverMessage- Returns:
- the name of template
-
setName
Set a name of template.- Parameters:
name- the name to set
-
getReader
Return Reader that contains the template.- Returns:
- Reader that contains the template.
-
setReader
Set Reader that contains the template.- Parameters:
reader- Reader that contains the template.
-
getWriter
Return Writer that contains the output.- Returns:
- Reader that contains the template.
-
setWriter
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.
-