public abstract class AbstractRemoteFunctionQueryResult<QueryT extends Query<QueryT,QueryResultT>,QueryResultT extends AbstractRemoteFunctionQueryResult<QueryT,QueryResultT>> extends Object implements QueryResult<QueryT,QueryResultT>, Iterable<ResultElement>
| Modifier and Type | Method and Description |
|---|---|
CollectedResultCollection |
collect(String elementName)
Collects the resulting elements with the given name from the parameters of this result.
|
ResultElement |
get(int index)
Returns the element with the given name from this result.
|
ResultElement |
get(String elementName)
Returns the element with the given name from this result.
|
List<RemoteFunctionMessage> |
getErrorMessages() |
Optional<ResultElement> |
getIfPresent(String elementName)
Returns the element with the given name from this result.
|
List<RemoteFunctionMessage> |
getInformationMessages() |
QueryT |
getQuery() |
ArrayList<ResultElement> |
getResultElements() |
List<RemoteFunctionMessage> |
getSuccessMessages() |
List<RemoteFunctionMessage> |
getWarningMessages() |
boolean |
has(String elementName)
Indicates whether the element with the given name exists in the result.
|
boolean |
hasErrorMessages() |
boolean |
hasFailed() |
boolean |
hasInformationMessages()
Indicates whether information messages occurred during BAPI execution.
|
boolean |
hasSuccessMessages()
Indicates whether success messages occurred during BAPI execution.
|
boolean |
hasWarningMessages()
Indicates whether warning messages occurred during BAPI execution.
|
boolean |
isEmpty() |
Iterator<ResultElement> |
iterator() |
int |
size() |
String |
toString() |
boolean |
wasSuccessful() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic boolean hasSuccessMessages()
public boolean hasInformationMessages()
public boolean hasWarningMessages()
public boolean hasFailed()
public boolean wasSuccessful()
public boolean hasErrorMessages()
public int size()
public boolean isEmpty()
public boolean has(String elementName)
elementName - The name of the element to be accessed.@Nonnull public Optional<ResultElement> getIfPresent(@Nonnull String elementName)
elementName - The name of the element to be accessed.ResultElement representing the corresponding element.@Nonnull public ResultElement get(int index) throws IndexOutOfBoundsException
index - The index of the element to be accessed.ResultElement representing the corresponding element.IndexOutOfBoundsException - If the given index is out of bounds.@Nonnull public ResultElement get(@Nonnull String elementName) throws IllegalArgumentException
elementName - The name of the element to be accessed.ResultElement representing the corresponding element.IllegalArgumentException - If the element could not be found.@Nullable public CollectedResultCollection collect(@Nonnull String elementName)
elementName - The name of the nested elements to be collected.CollectedResultCollection representing the corresponding elements.public ArrayList<ResultElement> getResultElements()
@Nonnull public Iterator<ResultElement> iterator()
iterator in interface Iterable<ResultElement>public QueryT getQuery()
getQuery in interface QueryResult<QueryT extends Query<QueryT,QueryResultT>,QueryResultT extends AbstractRemoteFunctionQueryResult<QueryT,QueryResultT>>public List<RemoteFunctionMessage> getSuccessMessages()
public List<RemoteFunctionMessage> getInformationMessages()
public List<RemoteFunctionMessage> getWarningMessages()
public List<RemoteFunctionMessage> getErrorMessages()
Copyright © 2020 SAP SE. All rights reserved.