public abstract class LineGroupingCriteria
extends java.lang.Object
Constructor and Description |
---|
LineGroupingCriteria() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
feedfields(java.util.ArrayList<Field> fieldlist,
boolean before)
feed the list of fields that will be shown around the main values
|
protected abstract java.lang.String |
getExtractorFromobject(java.lang.String objectprefix)
generates the code to extract the information for line grouping criteria from
the data object
|
abstract java.lang.String[] |
getImportStatements()
generates required import statements
|
abstract DataObjectDefinition |
getObject() |
abstract boolean |
hasDataGathering() |
abstract boolean |
isbacktobject() |
protected abstract void |
writeClassification(SourceGenerator sg,
ObjectReportNode objectReportNode,
java.lang.String prefix,
java.lang.String extraindent)
generates the classification code
|
abstract void |
writeDataGathering(SourceGenerator sg,
java.lang.String objectprefix)
writes the data generic logic
|
protected abstract void |
writeFields(SourceGenerator sg,
java.lang.String prefix)
write the fields in the source code
|
public abstract DataObjectDefinition getObject()
public abstract boolean hasDataGathering()
public abstract void writeDataGathering(SourceGenerator sg, java.lang.String objectprefix) throws java.io.IOException
sg
- source generatorobjectprefix
- prefix for the object for code generationjava.io.IOException
- if anything bad happens during source generationprotected abstract java.lang.String getExtractorFromobject(java.lang.String objectprefix)
objectprefix
- object prefix in the smart report nodepublic abstract java.lang.String[] getImportStatements()
protected abstract void writeClassification(SourceGenerator sg, ObjectReportNode objectReportNode, java.lang.String prefix, java.lang.String extraindent) throws java.io.IOException
sg
- source generatorobjectReportNode
- relevant object report nodeprefix
- prefix of the object nodeextraindent
- space indent to generate nice codejava.io.IOException
- if anything bad happens during the writingpublic abstract boolean isbacktobject()
protected abstract void feedfields(java.util.ArrayList<Field> fieldlist, boolean before)
fieldlist
- list of fieldsbefore
- if true, feed the list of fields shown before the main
value, if false feed the list of fields shown after the main
valueprotected abstract void writeFields(SourceGenerator sg, java.lang.String prefix) throws java.io.IOException
sg
- source generationprefix
- prefix for this nodejava.io.IOException
- if anything bad