public class SpecifiedOrder extends java.lang.Object implements java.io.Serializable, NodeParser
Modifier and Type | Field and Description |
---|---|
static int |
OTHER_RECORDS_DISCARD
All not specified values are discard and not part of the report.
|
static int |
OTHER_RECORDS_GROUP_TO_OTHERS
All not specified values are group together to the group other.
|
static int |
OTHER_RECORDS_LEAVE_IN_OWN_GROUP
All not specified values are group in its own groups.
|
Modifier and Type | Method and Description |
---|---|
int |
add(java.lang.String name,
FormulaField formula)
Add a new group value at the end of the list.
|
int |
add(java.lang.String name,
java.lang.String formula)
Add a new group value at the end of the list.
|
boolean |
equals(java.lang.Object object)
Compares the other object with this.
|
int |
findName(java.lang.String name)
Find the index of a group with its name.
|
int |
getCount()
Get the count of specified group values.
|
java.lang.String |
getFormula(int idx)
Return the formula of the nth group.
|
java.lang.String |
getName(int idx)
Return the display name of the nth group.
|
java.lang.String |
getOtherName()
Get the display name the other group entry.
|
int |
getOtherType()
Get the type for handling the not specified rows.
|
void |
move(int idx,
int offset)
Move a group entry to another position in the list.
|
void |
move(java.lang.String name,
int offset)
Move a group entry to another position in the list.
|
java.lang.String |
paramString()
Create a
String representation of this sort order for debugging. |
void |
remove(int idx)
Remove a group entry from this list.
|
void |
remove(java.lang.String name)
Remove a group entry from this list.
|
void |
setFormula(int idx,
FormulaField formula)
Set a new formula value on the idx position.
|
void |
setName(int idx,
java.lang.String name)
Change the name of a group entry.
|
void |
setOtherName(java.lang.String otherName)
Set display name for the other group entry.
|
void |
setOtherType(int otherType)
Set the type for handling the not specified rows.
|
isDOMParser, parseDOM, parseElement, parseEndElement, parseText
public static final int OTHER_RECORDS_GROUP_TO_OTHERS
setOtherType(int)
,
Constant Field Valuespublic static final int OTHER_RECORDS_DISCARD
setOtherType(int)
,
Constant Field Valuespublic static final int OTHER_RECORDS_LEAVE_IN_OWN_GROUP
setOtherType(int)
,
Constant Field Valuespublic final int getCount()
add(String, FormulaField)
,
add(String, String)
,
getName(int)
,
getFormulaField(int)
public java.lang.String getName(int idx)
idx
- index of group value.java.lang.IllegalArgumentException
- if the index is out of range.add(String, FormulaField)
,
add(String, String)
,
getCount()
,
getFormulaField(int)
public java.lang.String getFormula(int idx)
idx
- index of group value.String
.java.lang.IllegalArgumentException
- if the index is out of range.Field.BOOLEAN
,
setFormula(int, FormulaField)
,
getCount()
public int add(java.lang.String name, FormulaField formula)
name
- the display name (null
not permitted).formula
- the filter for this group (null
not permitted).java.lang.IllegalArgumentException
- if the name already exists or name or formula are nullremove(int)
,
move(int, int)
public int add(java.lang.String name, java.lang.String formula) throws ReportException
name
- the display name.formula
- the filter for this group.ReportException
- formula parse failed.java.lang.IllegalArgumentException
- if the name already exists.remove(int)
,
move(int, int)
public int findName(java.lang.String name)
name
- the display name of the group.public void remove(int idx)
idx
- the index start at position 0.java.lang.IllegalArgumentException
- if the index is out of range.add(String, String)
,
remove(String)
,
move(int, int)
public void remove(java.lang.String name) throws ReportException
name
- the display name of the group.ReportException
- if the name was not found.add(String, String)
,
remove(int)
public void move(int idx, int offset)
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.java.lang.IllegalArgumentException
- if the index is out of range.public void move(java.lang.String name, int offset) throws ReportException
name
- the name of the group entry.offset
- the count of position that is moved. A value of 0 has no effect.ReportException
- if the name was not found.public void setFormula(int idx, FormulaField formula)
idx
- the position start at index 0.formula
- the new formula string (null
not permitted).java.lang.IllegalArgumentException
- if the index is out of range.public void setName(int idx, java.lang.String name)
idx
- the index of the group entry starting at 0.name
- the new name of the group entry (null
not permitted).java.lang.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.public java.lang.String getOtherName()
setOtherName(String)
public void setOtherName(java.lang.String otherName)
otherName
- the new name.java.lang.IllegalArgumentException
- if the name is empty or null.setOtherType(int)
,
getOtherName()
public int getOtherType()
setOtherType(int)
public void setOtherType(int otherType)
otherType
- the new value.setOtherName(String)
,
getOtherType()
,
OTHER_RECORDS_GROUP_TO_OTHERS
,
OTHER_RECORDS_DISCARD
,
OTHER_RECORDS_LEAVE_IN_OWN_GROUP
public java.lang.String paramString()
String
representation of this sort order for debugging.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- the other objectCopyright © 1999-2020 by i-net software GmbH