public final class ResultList extends Object
Result
class. It holds a global list containing all instances
as well as seperate lists only holding instances of a ceratin
Status
category. See class Status
for available
categories. This container should be used, when operations of the rfadapter
package are used for a list of IResource
s in a single
transaction (e.g. the user selected a list of resources for a copy
operation). The loop calling the rfadpter-operations can add all returned
Result
instances to this container.
Copyright 2004 SAP AG
Constructor and Description |
---|
ResultList()
simple standard public constructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(Result result)
adds the given instance to the list of all results.
|
void |
add(ResultList list) |
Result |
get(int index) |
Status |
getStatus() |
int |
size() |
ResultList |
sublist(Status status) |
public void add(Result result)
Status
of the result, it is also added to the according list
that only contains results of this status-category. As the
Result
class will never return null
for its
status, each result will be placed in one of the categories available. So
the addition of the entries in each of the sublists will yield the same
number of elements as the total list of elements.result
- the instance to add. If the parameter is null
,
it will not be addedpublic void add(ResultList list)
public Status getStatus()
Status.NONE
is not considered here. If the list of a
status contains at least one element, this status determines the
status of this ResultList instance. If the list of this status does
not hold any elements the next status will be considered. The order
of asking the lists is determined by the severity of the status.public Result get(int index)
index
- the position of the Result
instance to retrieveResult
at the given positionpublic int size()
Result
instances stored in this
containerpublic ResultList sublist(Status status)
status
- the status to retrieve the Result
s of. Must
not be null
ResultList
instance that only holds
Result
instances of the given status category. If
the current instance does not hold any instances of the
Result
class with this severity, the returned list
will also hold no instances. The number of elements in the total
list of the returned ResultList
will naturally match
the number of elements in its sublist of the given status categoryAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice