public abstract class AbstractRemoteFunctionRequestResult<RequestT extends Request<RequestT,RequestResultT>,RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT,RequestResultT>> extends Object implements RequestResult<RequestT,RequestResultT>, 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() |
io.vavr.control.Option<ResultElement> |
getIfPresent(String elementName)
Returns the element with the given name from this result.
|
List<RemoteFunctionMessage> |
getInformationMessages() |
RequestT |
getRequest()
ERP request from which this result originates.
|
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, wait
forEach, spliterator
public 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 io.vavr.control.Option<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 RequestT getRequest()
RequestResult
getRequest
in interface RequestResult<RequestT extends Request<RequestT,RequestResultT>,RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT,RequestResultT>>
public List<RemoteFunctionMessage> getSuccessMessages()
public List<RemoteFunctionMessage> getInformationMessages()
public List<RemoteFunctionMessage> getWarningMessages()
public List<RemoteFunctionMessage> getErrorMessages()
Copyright © 2019 SAP SE. All rights reserved.