Interface TemplatePrinter
-
- All Known Implementing Classes:
RubyTemplatePrinter
public interface TemplatePrinter
TheTemplatePrinter
interface is used to create data printers for templates.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAlignedText(java.lang.String addText)
Adds the aligned (in accordance of the text structure) text to template file.void
addComment(java.lang.String addComment)
Adds the comment to template file.void
addDataRegion()
Adds the data region to template file.void
addHeader()
Adds a header to template file.void
addOperation(java.lang.String opName, java.lang.String opArguments)
Adds the operation to template file.void
addString(java.lang.String addString)
Adds the string to template file.void
addText(java.lang.String addText)
Adds the text to template file.void
closeBlock()
Closes the block in template file.void
closeSequence(java.lang.String sequenceEnd)
Closes the sequence in template file.java.lang.String
formattingOperation(java.lang.String operationName)
Checks for a match with the keywords and returns not a keyword for the printer with the same value.java.lang.String
getDataLabel()
Returns the data region label of the template file.void
startBlock()
Opens the block in template file.void
startSequence(java.lang.String sequenceTitle)
Opens the sequence in template file.void
templateBegin()
Adds a title to template file.void
templateClose()
Closes the template file.void
templateEnd()
Adds end title for template.
-
-
-
Method Detail
-
templateBegin
void templateBegin()
Adds a title to template file.
-
addHeader
void addHeader()
Adds a header to template file.
-
addDataRegion
void addDataRegion()
Adds the data region to template file.
-
getDataLabel
java.lang.String getDataLabel()
Returns the data region label of the template file.- Returns:
- label of the data region.
-
formattingOperation
java.lang.String formattingOperation(java.lang.String operationName)
Checks for a match with the keywords and returns not a keyword for the printer with the same value. Example: add - keyword, ADD - not keyword for some languages.- Parameters:
operationName
- name of the operation.- Returns:
- not keyword name of the operation for the printer.
-
addOperation
void addOperation(java.lang.String opName, java.lang.String opArguments)
Adds the operation to template file.- Parameters:
opName
- Operation name.opArguments
- Operation arguments.
-
addString
void addString(java.lang.String addString)
Adds the string to template file.- Parameters:
addString
- string.
-
addText
void addText(java.lang.String addText)
Adds the text to template file.- Parameters:
addText
- text.
-
addAlignedText
void addAlignedText(java.lang.String addText)
Adds the aligned (in accordance of the text structure) text to template file.- Parameters:
addText
- text.
-
addComment
void addComment(java.lang.String addComment)
Adds the comment to template file.- Parameters:
addComment
- text.
-
startSequence
void startSequence(java.lang.String sequenceTitle)
Opens the sequence in template file.- Parameters:
sequenceTitle
- sequence title.
-
closeSequence
void closeSequence(java.lang.String sequenceEnd)
Closes the sequence in template file.- Parameters:
sequenceEnd
- sequence end title.
-
templateEnd
void templateEnd()
Adds end title for template.
-
templateClose
void templateClose()
Closes the template file.
-
startBlock
void startBlock()
Opens the block in template file.
-
closeBlock
void closeBlock()
Closes the block in template file.
-
-