public class PlanResponse
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NODE_TAG |
Constructor and Description |
---|
PlanResponse()
Deprecated.
for serialization only.
|
PlanResponse(PlanBuilderIdentifier workflowSession) |
PlanResponse(PlanBuilderIdentifier workflowSession,
java.lang.String scope) |
Modifier and Type | Method and Description |
---|---|
PackageGroup |
createPackageGroup(java.lang.String serviceName)
Instantiate a new
PackageGroup inside the PlanResponse . |
java.lang.String |
getKey() |
java.util.List<PackageGroup> |
getPackageGroups() |
java.lang.String |
getScope() |
ResponseStatus |
getStatus() |
boolean |
hasFailed()
This method is used to check if the obtained response is
for a failed plan or not.
|
void |
setKey(java.lang.String key) |
void |
setScope(java.lang.String scope) |
void |
setStatus(ResponseStatus status) |
public static final java.lang.String NODE_TAG
public PlanResponse()
public PlanResponse(PlanBuilderIdentifier workflowSession)
public PlanResponse(PlanBuilderIdentifier workflowSession, java.lang.String scope)
public final java.lang.String getScope()
public final void setScope(java.lang.String scope)
public final java.util.List<PackageGroup> getPackageGroups()
public final java.lang.String getKey()
public final void setKey(java.lang.String key)
public final PackageGroup createPackageGroup(java.lang.String serviceName)
PackageGroup
inside the PlanResponse
.
Note: using this method the newly created element is automatically inserted inside the package group list of the response plan so that no explicit add(elem) instruction is required.
PackageGroup
and stores it inside the PlanResponse
.public void setStatus(ResponseStatus status)
public ResponseStatus getStatus()
public boolean hasFailed()