Klasse BySummaryOrder
java.lang.Object
com.inet.report.BySummaryOrder
- Alle implementierten Schnittstellen:
NodeParser, Serializable
BySummaryOrder saves the options for the sort by aggregate function.
- Seit:
- 4.0
- Siehe auch:
-
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final StringDefault name for all other elements.static final intDisplay all elements sorted ascending or descendingstatic final intDisplay only first n elements in ascending sort orderstatic final intDisplay only first n-procent elements in ascending sort orderstatic final intDisplay only first n elements in descending sort orderstatic final intDisplay only first n-procent elements in descending sort orderstatic final intAll values with sorting number greater than n are discard and not part of the report.static final intAll values with sorting number greater than n are group together to the group other.static final intConstant for ascending order sort direction.static final intConstant for descending order sort direction. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidaddSummaryField(SummaryField sField) Adds a summary field used for sorting.copy()Creates a copy of this.booleanCompares the other object with this.intgetN()Gets the count of displayed elementsintgetOther()Gets the type for handling the values with sorting number greater than n.Gets the display name the other group entry.intGets the direction of the sortingintGets the type of sortinggetSummaryField(int index) Gets the summary field used for sorting at index position.intUse this method to get the number of summary fields used for sorting.booleanFOR INTERNAL USE ONLY Internal method for reading report XMLReturns the String representation of this object.voidFOR INTERNAL USE ONLY Internal method for reading report XMLparseElement(com.inet.report.parser.XMLTag xGroup, String tag, Attributes atts, Map<String, Object> parserMap) FOR INTERNAL USE ONLY Internal method for reading report XMLvoidparseEndElement(com.inet.report.parser.XMLTag xGroup, String tag, Map<String, Object> parserMap) FOR INTERNAL USE ONLY Internal method for reading report XMLvoidFOR INTERNAL USE ONLY Internal method for reading report XMLvoidremoveSummaryField(int index) Removes theSummaryFieldfrom this sort order.voidsetN(int n) Sets the count of displayed elementsvoidsetOther(int otherType) Sets the type for handling the values with sorting number greater than n.voidsetOtherName(String otherName) Sets display name for the other group entry.voidsetSortDirection(int direction) Sets the direction of sortingvoidsetSortType(int type) Sets the type of sorting
-
Felddetails
-
DEFAULT_OTHER_NAME
-
GROUP_SORT_ALL
public static final int GROUP_SORT_ALLDisplay all elements sorted ascending or descending- Siehe auch:
-
GROUP_SORT_TOP_N
public static final int GROUP_SORT_TOP_NDisplay only first n elements in descending sort order- Siehe auch:
-
GROUP_SORT_BOTTOM_N
public static final int GROUP_SORT_BOTTOM_NDisplay only first n elements in ascending sort order- Siehe auch:
-
GROUP_SORT_TOP_N_PERCENTAGE
public static final int GROUP_SORT_TOP_N_PERCENTAGEDisplay only first n-procent elements in descending sort order- Siehe auch:
-
GROUP_SORT_BOTTOM_N_PERCENTAGE
public static final int GROUP_SORT_BOTTOM_N_PERCENTAGEDisplay only first n-procent elements in ascending sort order- Siehe auch:
-
SORT_ASCENDING_ORDER
public static final int SORT_ASCENDING_ORDERConstant for ascending order sort direction.- Siehe auch:
-
SORT_DESCENDING_ORDER
public static final int SORT_DESCENDING_ORDERConstant for descending order sort direction.- Siehe auch:
-
OTHER_RECORDS_GROUP_TO_OTHERS
public static final int OTHER_RECORDS_GROUP_TO_OTHERSAll values with sorting number greater than n are group together to the group other.- Siehe auch:
-
OTHER_RECORDS_DISCARD
public static final int OTHER_RECORDS_DISCARDAll values with sorting number greater than n are discard and not part of the report.- Siehe auch:
-
-
Konstruktordetails
-
BySummaryOrder
public BySummaryOrder()FOR INTERNAL USE ONLY
-
-
Methodendetails
-
setSortType
public void setSortType(int type) Sets the type of sorting- Parameter:
type- the type of sorting by summary.- Seit:
- 4.0
- Siehe auch:
-
getSortType
public int getSortType()Gets the type of sorting- Gibt zurück:
- type of sort
- Seit:
- 4.0
- Siehe auch:
-
getOtherName
Gets the display name the other group entry.- Gibt zurück:
- the name for all other group values.
- Seit:
- 4.0
- Siehe auch:
-
setN
public void setN(int n) Sets the count of displayed elements- Parameter:
n- count of shown group values.- Löst aus:
IllegalArgumentException- if n less than 0.- Seit:
- 4.0
-
getN
public int getN()Gets the count of displayed elements- Gibt zurück:
- count
- Seit:
- 4.0
-
setOtherName
Sets display name for the other group entry. This value has no effect if the sortType GROUP_SORT_ALL is set.- Parameter:
otherName- the new name.- Löst aus:
IllegalArgumentException- if the name is empty or null.- Seit:
- 4.0
- Siehe auch:
-
getOther
public int getOther()Gets the type for handling the values with sorting number greater than n.- Gibt zurück:
- the type of handling for all other group values.
- Seit:
- 4.0
- Siehe auch:
-
setOther
public void setOther(int otherType) Sets the type for handling the values with sorting number greater than n. This value has no effect if the sortType GROUP_SORT_ALL is set.- Parameter:
otherType- the new value.- Seit:
- 4.0
- Siehe auch:
-
getSummaryField
Gets the summary field used for sorting at index position.- Parameter:
index- of the summary field.- Gibt zurück:
- the summary field at index.
- Löst aus:
IndexOutOfBoundsException- if this index is out of bounds of the summary fields list.- Seit:
- 4.0
-
getSummaryFieldCount
public int getSummaryFieldCount()Use this method to get the number of summary fields used for sorting.- Gibt zurück:
- The number of summary fields used for sorting.
- Seit:
- 4.0
-
addSummaryField
Adds a summary field used for sorting.- Parameter:
sField- SummaryField- Löst aus:
IllegalArgumentException- if the SummaryField null is- Seit:
- 4.0
-
removeSummaryField
public void removeSummaryField(int index) Removes theSummaryFieldfrom this sort order.- Parameter:
index- of removed field.- Löst aus:
IndexOutOfBoundsException- if this index is out of bounds of the summary fields list or the list isnull.- Seit:
- 4.0
-
getSortDirection
public int getSortDirection()Gets the direction of the sorting- Gibt zurück:
- direction of sort
- Seit:
- 4.0
- Siehe auch:
-
setSortDirection
public void setSortDirection(int direction) Sets the direction of sorting- Parameter:
direction- the sort direction of this sort order, asc. or desc.- Seit:
- 4.0
- Siehe auch:
-
paramString
Returns the String representation of this object.- Gibt zurück:
- the description as String.
- Seit:
- 6.0
-
equals
-
parseElement
public NodeParser parseElement(com.inet.report.parser.XMLTag xGroup, String tag, Attributes atts, Map<String, Object> parserMap) throws FatalParserExceptionFOR INTERNAL USE ONLY Internal method for reading report XMLParses an XML node with the given information, and returns either a sub-element which was created as a result, or null if no sub-element was created, i.e. the information was applied to the ReportComponent itself. Note that the parsing is highly tolerant, i.e. exceptions are intercepted and suppressed if at all possible.
- Angegeben von:
parseElementin SchnittstelleNodeParser- Parameter:
xGroup- XMLTag of the current node to be parsed, or null if there is no such current group. An XMLTag is a group of nodes bundled together, usually it is a Properties node such as CommonProperties, BorderProperties, etc.tag- The XMLTag to be parsedatts- The set of attributes in the current XMLTagparserMap- The map of current Parser.- Gibt zurück:
- The NodeParser sub-element if one needed to be created, or null if none was created.
- Löst aus:
FatalParserException- if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.
-
parseText
FOR INTERNAL USE ONLY Internal method for reading report XMLThis method is called if text was encountered in the context of this node. (Examples would be a formula's text or a text element's text)
- Angegeben von:
parseTextin SchnittstelleNodeParser- Parameter:
text- text encountered and to be storedparserMap- The map of current Parser.
-
parseEndElement
public void parseEndElement(com.inet.report.parser.XMLTag xGroup, String tag, Map<String, Object> parserMap) throws FatalParserExceptionFOR INTERNAL USE ONLY Internal method for reading report XMLReceive notification of the end of an XML tag.
- Angegeben von:
parseEndElementin SchnittstelleNodeParser- Parameter:
xGroup- XMLTag of the current node to be parsed, or null if there is no such current group.tag- The XMLTag to be parsedparserMap- The map of current Parser.- Löst aus:
FatalParserException- if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.
-
isDOMParser
public boolean isDOMParser()FOR INTERNAL USE ONLY Internal method for reading report XMLReturns whether this node is to be read via a DOM parser.
- Angegeben von:
isDOMParserin SchnittstelleNodeParser- Gibt zurück:
- true if this node is to be read via a DOM parser, false otherwise.
-
parseDOM
FOR INTERNAL USE ONLY Internal method for reading report XMLParses the node.
- Angegeben von:
parseDOMin SchnittstelleNodeParser- Parameter:
node- the nodeparserMap- The map of current Parser.- Löst aus:
FatalParserException- if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.
-
copy
Creates a copy of this. The copy has then same group, renderer and sum fields.- Gibt zurück:
- the copy
- Seit:
- 11.1
-