public class GroupList extends Object implements Cloneable, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_GROUP_NAME
Deprecated.
The name of the automaticly created default group.
|
Modifier | Constructor and Description |
---|---|
|
GroupList()
Deprecated.
Constructs a new group list, with only a default group inside.
|
protected |
GroupList(GroupList list)
Deprecated.
Creates a new group list and copies the contents of the given grouplist.
|
Modifier and Type | Method and Description |
---|---|
void |
add(RelationalGroup o)
Deprecated.
Adds a group to the list.
|
void |
addAll(Collection c)
Deprecated.
Adds all groups of the collection to this group list.
|
void |
clear()
Deprecated.
Clears the list.
|
Object |
clone()
Deprecated.
Clones the group list and all contained groups.
|
Group |
constructRootGroup()
Deprecated.
Creates a hierarchical group structure and moves the data group body to the inner most group.
|
Group |
get(int i)
Deprecated.
Returns the group at a given position in the list.
|
Group |
getGroupByName(String name)
Deprecated.
Searches a group by its defined name.
|
protected RelationalGroup[] |
getGroupCache()
Deprecated.
Returns a direct reference to the group cache.
|
void |
installIntoReport(AbstractReportDefinition report)
Deprecated.
|
Iterator |
iterator()
Deprecated.
Returns an iterator for the groups of the list.
|
boolean |
remove(RelationalGroup o)
Deprecated.
Removes an group from the list.
|
int |
size()
Deprecated.
Returns the number of groups in the list.
|
String |
toString()
Deprecated.
Returns a string representation of the list (useful for debugging).
|
public static final String DEFAULT_GROUP_NAME
public GroupList()
protected GroupList(GroupList list)
list
- groups to add to the list.public Group get(int i)
i
- the position index (zero-based).public boolean remove(RelationalGroup o)
o
- the group that should be removed.NullPointerException
- if the given group object is null.public void clear()
public void add(RelationalGroup o)
o
- the group object.public void addAll(Collection c)
c
- the collection that contains the groups.NullPointerException
- if the given collection is null.ClassCastException
- if the collection does not contain groups.public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- if cloning the element failed.Cloneable
public Iterator iterator()
public int size()
public String toString()
protected RelationalGroup[] getGroupCache()
public Group getGroupByName(String name)
name
- the name of the group.public Group constructRootGroup()
public void installIntoReport(AbstractReportDefinition report) throws ParseException
ParseException
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.