Klasse SpecifiedOrder
java.lang.Object
com.inet.report.SpecifiedOrder
- Alle implementierten Schnittstellen:
NodeParser, Serializable
This class saved the details of the specified sort order of groups. *
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifikator und TypKlasseBeschreibungstatic enumFOR INTERNAL USE ONLY -
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final intAll not specified values are discard and not part of the report.static final intAll not specified values are group together to the group other.static final intAll not specified values are group in its own groups. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungintadd(String name, FormulaField formula) Add a new group value at the end of the list.intAdd a new group value at the end of the list.booleanCompares the other object with this.intFind the index of a group with its name.final intgetCount()Get the count of specified group values.getFormula(int idx) Return the formula of the nth group.getFormulaField(int idx) FOR INTERNAL USE ONLY Returns FormulaField from indexgetName(int idx) Return the display name of the nth group.Get the display name the other group entry.intGet the type for handling the not specified rows.booleanFOR INTERNAL USE ONLY Internal method for reading report XMLvoidmove(int idx, int offset) Move a group entry to another position in the list.voidMove a group entry to another position in the list.Create aStringrepresentation of this sort order for debugging.voidFOR INTERNAL USE ONLY Internal method for reading report XMLparseElement(com.inet.report.parser.XMLTag group, String tagName, Attributes atts, Map<String, Object> parserMap) FOR INTERNAL USE ONLY Internal method for reading report XMLvoidparseEndElement(com.inet.report.parser.XMLTag group, String tag, Map<String, Object> parserMap) FOR INTERNAL USE ONLY Internal method for reading report XMLvoidFOR INTERNAL USE ONLY Internal method for reading report XMLvoidremove(int idx) Remove a group entry from this list.voidRemove a group entry from this list.voidsetFormula(int idx, FormulaField formula) Set a new formula value on the idx position.voidChange the name of a group entry.voidsetOtherName(String otherName) Set display name for the other group entry.voidsetOtherType(int otherType) Set the type for handling the not specified rows.
-
Felddetails
-
OTHER_RECORDS_GROUP_TO_OTHERS
public static final int OTHER_RECORDS_GROUP_TO_OTHERSAll not specified values are group together to the group other.- Siehe auch:
-
OTHER_RECORDS_DISCARD
public static final int OTHER_RECORDS_DISCARDAll not specified values are discard and not part of the report.- Siehe auch:
-
OTHER_RECORDS_LEAVE_IN_OWN_GROUP
public static final int OTHER_RECORDS_LEAVE_IN_OWN_GROUPAll not specified values are group in its own groups. The order of this groups is unspecified and can change in future versions.- Siehe auch:
-
-
Konstruktordetails
-
SpecifiedOrder
public SpecifiedOrder()FOR INTERNAL USE ONLY
-
-
Methodendetails
-
getCount
public final int getCount()Get the count of specified group values.- Gibt zurück:
- the count of values.
- Seit:
- 6.0
- Siehe auch:
-
getName
Return the display name of the nth group.- Parameter:
idx- index of group value.- Gibt zurück:
- the name of nth group value.
- Löst aus:
IllegalArgumentException- if the index is out of range.- Seit:
- 6.0
- Siehe auch:
-
getFormula
Return the formula of the nth group. The return type of the formula must be BOOLEAN. The formula must return TRUE if a row is part of this group.- Parameter:
idx- index of group value.- Gibt zurück:
- the formula of nth group value as
String. - Löst aus:
IllegalArgumentException- if the index is out of range.- Seit:
- 6.0
- Siehe auch:
-
getFormulaField
FOR INTERNAL USE ONLY Returns FormulaField from index- Parameter:
idx- the index of formula- Gibt zurück:
- the formula field
- Seit:
- 6.0
-
add
Add a new group value at the end of the list.- Parameter:
name- the display name (nullnot permitted).formula- the filter for this group (nullnot permitted).- Gibt zurück:
- the index of the new group entry.
- Löst aus:
IllegalArgumentException- if the name already exists or name or formula are null- Seit:
- 6.0
- Siehe auch:
-
add
Add a new group value at the end of the list.- Parameter:
name- the display name.formula- the filter for this group.- Gibt zurück:
- the index of the new group entry.
- Löst aus:
ReportException- formula parse failed.IllegalArgumentException- if the name already exists.- Seit:
- 6.0
- Siehe auch:
-
findName
Find the index of a group with its name.- Parameter:
name- the display name of the group.- Gibt zurück:
- returns the index or -1 if not found.
- Seit:
- 6.0
-
remove
public void remove(int idx) Remove a group entry from this list.- Parameter:
idx- the index start at position 0.- Löst aus:
IllegalArgumentException- if the index is out of range.- Seit:
- 6.0
- Siehe auch:
-
remove
Remove a group entry from this list.- Parameter:
name- the display name of the group.- Löst aus:
ReportException- if the name was not found.- Seit:
- 6.0
- Siehe auch:
-
move
public void move(int idx, int offset) Move a group entry to another position in the list.- Parameter:
idx- the position of the group entry. The index start at 0.offset- the count of position that is moved. A value of 0 has no effect.- Löst aus:
IllegalArgumentException- if the index is out of range.- Seit:
- 6.0
-
move
Move a group entry to another position in the list.- Parameter:
name- the name of the group entry.offset- the count of position that is moved. A value of 0 has no effect.- Löst aus:
ReportException- if the name was not found.- Seit:
- 6.0
-
setFormula
Set a new formula value on the idx position.- Parameter:
idx- the position start at index 0.formula- the new formula string (nullnot permitted).- Löst aus:
IllegalArgumentException- if the index is out of range.- Seit:
- 6.0
-
setName
Change the name of a group entry.- Parameter:
idx- the index of the group entry starting at 0.name- the new name of the group entry (nullnot permitted).- Löst aus:
IllegalArgumentException- if the name already exists or the index is out of range. or if the name already exists or the index is out of range.- Seit:
- 6.0
-
getOtherName
Get the display name the other group entry.- Gibt zurück:
- the name for other group values.
- Seit:
- 6.0
- Siehe auch:
-
setOtherName
Set display name for the other group entry. This value has only an effect if the type OTHER_RECORDS_GROUP_TO_OTHERS is set.- Parameter:
otherName- the new name.- Löst aus:
IllegalArgumentException- if the name is empty or null.- Seit:
- 6.0
- Siehe auch:
-
getOtherType
public int getOtherType()Get the type for handling the not specified rows.- Gibt zurück:
- the type of handling.
- Seit:
- 6.0
- Siehe auch:
-
setOtherType
public void setOtherType(int otherType) Set the type for handling the not specified rows.- Parameter:
otherType- the new value.- Seit:
- 6.0
- Siehe auch:
-
paramString
Create aStringrepresentation of this sort order for debugging.- Gibt zurück:
- the representation.
- Seit:
- 7.0
-
equals
-
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.
-
parseElement
public NodeParser parseElement(com.inet.report.parser.XMLTag group, String tagName, 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:
group- 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.tagName- 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.
-
parseEndElement
public void parseEndElement(com.inet.report.parser.XMLTag group, 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:
group- 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.
-
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.
-