Package com.reportmill.base
Class RMGrouping
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.base.RMGrouping
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 
 public class RMGrouping extends RMObject This object represents an individual grouping with attributes like key, sorts, topN sort, etc.
- 
- 
Constructor SummaryConstructors Constructor Description RMGrouping()Creates an empty grouping.RMGrouping(java.lang.String aKey)Creates a grouping with the given key.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSort(RMSort anSO)Adds the given sort to the grouping.voidaddSort(java.lang.String aSortKey)Adds a sort to the grouping for the given sort key.voidaddSorts(java.util.List sos)Adds the list of sorts to the grouping.java.lang.Objectclone()Standard clone implementation.booleanequals(java.lang.Object anObj)Standard equals implementation.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.booleangetHasDetails()Returns whether the grouping has a details.booleangetHasHeader()Returns whether the grouping has a header.booleangetHasSummary()Returns whether the grouping has a summary.booleangetIncludeAllValues()Returns whether the grouping includes all values.booleangetIncludeNulls()Returns whether the grouping includes nulls.java.lang.StringgetKey()Returns the grouping key.RMSortgetSort(int anIndex)Returns the individual sort at the given index.intgetSortCount()Returns the number of sorts in the grouping.java.util.ListgetSorts()Returns the groupings list of sorts.intgetTopNCount()Returns the top N count for the grouping.booleangetTopNIncludeOthers()Returns whether the top N sort for the grouping includes others.RMSortgetTopNSort()Returns the top N sort for the grouping.java.lang.ObjectinitWithArchiver(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.voidsetKey(java.lang.String aValue)Sets 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.RXElementtoXML(RXArchiver anArchiver)XML Archival.- 
Methods inherited from class com.reportmill.base.RMObjectcopy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Method Detail- 
getKeypublic java.lang.String getKey() Returns the grouping key.
 - 
setKeypublic void setKey(java.lang.String aValue) Sets the grouping key.
 - 
getSortspublic java.util.List getSorts() Returns the groupings list of sorts.
 - 
getSortCountpublic int getSortCount() Returns the number of sorts in the grouping.
 - 
getSortpublic RMSort getSort(int anIndex) Returns the individual sort at the given index.
 - 
addSortpublic void addSort(java.lang.String aSortKey) Adds a sort to the grouping for the given sort key.
 - 
addSortpublic void addSort(RMSort anSO) Adds the given sort to the grouping.
 - 
addSortspublic void addSorts(java.util.List sos) Adds the list of sorts to the grouping.
 - 
removeSortpublic void removeSort(RMSort anSO) Removes the given sort from the grouping.
 - 
moveSortpublic void moveSort(int sourceIndex, int destIndex)Moves a sort from the source index to the destination index.
 - 
getTopNSortpublic RMSort getTopNSort() Returns the top N sort for the grouping.
 - 
setTopNSortpublic void setTopNSort(RMSort aSort) Sets 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.
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.- Overrides:
- equalsin class- java.lang.Object
 
 - 
clonepublic java.lang.Object clone() Standard clone implementation.
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML Archival.
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.
 - 
initWithArchiverpublic java.lang.Object initWithArchiver(RMArchiver anArchiver) Legacy unarchival.- Specified by:
- initWithArchiverin interface- RMArchiver.Archiving
- Overrides:
- initWithArchiverin class- RMObject
 
 
- 
 
-