Package com.reportmill.base
Class RMGrouping
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.base.RMGrouping
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
This object represents an individual grouping with attributes like key, sorts, topN sort, etc.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an empty grouping.RMGrouping(String aKey) Creates a grouping with the given key.
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds the given sort to the grouping.voidAdds a sort to the grouping for the given sort key.voidAdds the list of sorts to the grouping.clone()Standard clone implementation.booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.booleanReturns whether the grouping has a details.booleanReturns whether the grouping has a header.booleanReturns whether the grouping has a summary.booleanReturns whether the grouping includes all values.booleanReturns whether the grouping includes nulls.getKey()Returns the grouping key.getSort(int anIndex) Returns the individual sort at the given index.intReturns the number of sorts in the grouping.getSorts()Returns the groupings list of sorts.intReturns the top N count for the grouping.booleanReturns whether the top N sort for the grouping includes others.Returns the top N sort for the grouping.initWithArchiver(RMArchiver anArchiver) Legacy unarchival.voidmoveSort(int sourceIndex, int destIndex) Moves a sort from the source index to the destination index.voidremoveSort(RMSort anSO) Removes the given sort from the grouping.voidsetHasDetails(boolean aValue) Sets whether the grouping has a details.voidsetHasHeader(boolean aValue) Sets whether the grouping has a header.voidsetHasSummary(boolean aValue) Sets whether the grouping has a summary.voidsetIncludeAllValues(boolean aValue) Sets whether the grouping includes all values.voidsetIncludeNulls(boolean aValue) Sets whether the grouping includes nulls.voidSets the grouping key.voidsetTopNCount(int aValue) Sets the top N count for the grouping.voidsetTopNIncludeOthers(boolean aValue) Sets whether the top N sort for the grouping includes others.voidsetTopNSort(RMSort aSort) Sets the top N sort for the grouping.toXML(RXArchiver anArchiver) XML Archival.Methods inherited from class com.reportmill.base.RMObjectcopy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
- 
Constructor Details- 
RMGroupingpublic RMGrouping()Creates an empty grouping.
- 
RMGroupingCreates a grouping with the given key.
 
- 
- 
Method Details- 
getKeyReturns the grouping key.
- 
setKeySets the grouping key.
- 
getSortsReturns the groupings list of sorts.
- 
getSortCountpublic int getSortCount()Returns the number of sorts in the grouping.
- 
getSortReturns the individual sort at the given index.
- 
addSortAdds a sort to the grouping for the given sort key.
- 
addSortAdds the given sort to the grouping.
- 
addSortsAdds the list of sorts to the grouping.
- 
removeSortRemoves the given sort from the grouping.
- 
moveSortpublic void moveSort(int sourceIndex, int destIndex) Moves a sort from the source index to the destination index.
- 
getTopNSortReturns the top N sort for the grouping.
- 
setTopNSortSets the top N sort for the grouping.
- 
getTopNCountpublic int getTopNCount()Returns the top N count for the grouping.
- 
setTopNCountpublic void setTopNCount(int aValue) Sets the top N count for the grouping.
- 
getTopNIncludeOtherspublic boolean getTopNIncludeOthers()Returns whether the top N sort for the grouping includes others.
- 
setTopNIncludeOtherspublic void setTopNIncludeOthers(boolean aValue) Sets whether the top N sort for the grouping includes others.
- 
getHasHeaderpublic boolean getHasHeader()Returns whether the grouping has a header.
- 
setHasHeaderpublic void setHasHeader(boolean aValue) Sets whether the grouping has a header.
- 
getHasDetailspublic boolean getHasDetails()Returns whether the grouping has a details.
- 
setHasDetailspublic void setHasDetails(boolean aValue) Sets whether the grouping has a details.
- 
getHasSummarypublic boolean getHasSummary()Returns whether the grouping has a summary.
- 
setHasSummarypublic void setHasSummary(boolean aValue) Sets whether the grouping has a summary.
- 
getIncludeAllValuespublic boolean getIncludeAllValues()Returns whether the grouping includes all values.
- 
setIncludeAllValuespublic void setIncludeAllValues(boolean aValue) Sets whether the grouping includes all values.
- 
getIncludeNullspublic boolean getIncludeNulls()Returns whether the grouping includes nulls.
- 
setIncludeNullspublic void setIncludeNulls(boolean aValue) Sets whether the grouping includes nulls.
- 
equalsStandard equals implementation.
- 
cloneStandard clone implementation.
- 
toXMLXML Archival.
- 
fromXMLXML unarchival.
- 
initWithArchiverLegacy unarchival.- Specified by:
- initWithArchiverin interface- RMArchiver.Archiving
- Overrides:
- initWithArchiverin class- RMObject
 
 
-