public class SafeActivityReturnVariable
extends java.lang.Object
ActivityReturnVariable
that enforces non-null
value, and contains only getters so that users cannot change the values.Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG |
Constructor and Description |
---|
SafeActivityReturnVariable(ActivityReturnVariable delegate_)
Deprecated.
|
SafeActivityReturnVariable(ActivityReturnVariable delegate_,
TypeService ts)
Instantiates a wrapper for a
ActivityReturnVariable object. |
Modifier and Type | Method and Description |
---|---|
SafeActivityReturnVariable[] |
children()
If the type of the variable is BEAN, returns an array of ACP who are the
fields of the bean.
|
static SafeActivityReturnVariable |
findByName(SafeActivityReturnVariable[] variables_,
java.lang.String name_)
Finds the variable in the given array whose
name corresponds
to the given name. |
static ActivityReturnVariable[] |
getArvs(SafeActivityReturnVariable[] safes_) |
java.lang.Long |
getInstanceType() |
java.lang.String |
getKey() |
java.lang.String |
getName() |
java.lang.Long |
getType()
Deprecated.
|
java.lang.Object |
getValue() |
void |
setValue(java.lang.Object value_)
Sets the value of the typed variable.
|
java.lang.String |
toString()
converts typed variable to a string
|
@Deprecated public SafeActivityReturnVariable(ActivityReturnVariable delegate_)
public SafeActivityReturnVariable(ActivityReturnVariable delegate_, TypeService ts)
ActivityReturnVariable
object.public java.lang.String toString()
toString
in class java.lang.Object
public SafeActivityReturnVariable[] children()
null
. All non-null return values are wrapped in
SafeActivityReturnVariables.
Note that this is not a getXXX method, so as not to be confused with a property (mostly by ASL/k).
public java.lang.Long getType()
getInstanceType()
public java.lang.Long getInstanceType()
public java.lang.String getKey()
public java.lang.String getName()
public java.lang.Object getValue()
public void setValue(java.lang.Object value_)
java.lang.IllegalStateException
- If called on an object of type BEAN or BEAN_ARRAYjava.lang.IllegalArgumentException
- If called with an object that is not of the correct typepublic static SafeActivityReturnVariable findByName(SafeActivityReturnVariable[] variables_, java.lang.String name_)
name
corresponds
to the given name. If no such variable can be found, returns
null
.variables_
- SafeActivityReturnVariables
to search
throughname_
- name of activity variable to search forSafeActivityReturnVariable
that exactly
matches name_public static ActivityReturnVariable[] getArvs(SafeActivityReturnVariable[] safes_)
safes_
- The SafeActivityReturnVariable
objects to get
ActivityReturnVariable
objects forActivityReturnVariable
objects relating to the given
SafeActivityReturnVariable
objectsCopyright © 2003-2024 Appian Corporation. All Rights Reserved.