NamedTypedValue
instead.@Deprecated public class TypedVariable extends NamedTypedValue implements XMLable, AppianTypeHolder, java.io.Serializable, TypedVariableTypes, DeepCloneable, com.appiancorp.core.expr.portable.PortableNamedTypedValueWithChildren
TypeDescriptor
,
Serialized FormModifier and Type | Field and Description |
---|---|
static boolean |
classType$TRANSIENT
Deprecated.
|
static boolean |
dataType$TRANSIENT
Deprecated.
|
static boolean |
detailedTypes$TRANSIENT
Deprecated.
|
static boolean |
displayName$TRANSIENT
Deprecated.
|
static int |
LOCAL_COMMUNITY
Deprecated.
|
static int |
LOCAL_DOCUMENT
Deprecated.
|
static int |
LOCAL_EMAIL_ADDRESS
Deprecated.
|
static int |
LOCAL_FOLDER
Deprecated.
|
static int |
LOCAL_FORUM
Deprecated.
|
static int |
LOCAL_GROUP
Deprecated.
|
static int |
LOCAL_KC
Deprecated.
|
static int |
LOCAL_MESSAGE
Deprecated.
|
static int |
LOCAL_NODE
Deprecated.
|
static int |
LOCAL_PAGE
Deprecated.
|
static int |
LOCAL_PM
Deprecated.
|
static int |
LOCAL_PORTLET
Deprecated.
|
static int |
LOCAL_PROCESS
Deprecated.
|
static int |
LOCAL_TASK
Deprecated.
|
static int |
LOCAL_TOPIC
Deprecated.
|
static int |
LOCAL_USER
Deprecated.
|
static int |
MAX_TYPE
Deprecated.
|
static boolean |
multipleSupportingType$TRANSIENT
Deprecated.
|
QNAME
ALWAYS, AT_DESIGNER_DISCRETION, clearPasswordOnTransport, NEVER, TO_STRING_STYLE
DEFAULT_BUFFER_SIZE
CONSTANT, CONTENT, CUSTOM_CONTENT_ITEM, DATETIME, DURATION, FREEFORM_RULE, LONG, PEOPLE, PROCESSMODEL_FOLDER, RULE, TEMPLATE, USER
ADMINISTERED_PROPERTY, ALIAS, APPLICATION, ARRAY, ATTACHMENT, BEAN, BIG_RATIONAL, BINARY, BOOLEAN, CHART_COLOR, COMMUNITY, CONNECTED_SYSTEM, CONTENT_COMMUNITY, CONTENT_CONSTANT, CONTENT_CUSTOM, CONTENT_DOCUMENT, CONTENT_FOLDER, CONTENT_FREEFORM_RULE, CONTENT_ITEM, CONTENT_KNOWLEDGE_CENTER, CONTENT_RULE, CURRENCY, DATA_SOURCE, DATA_STORE, DATA_STORE_ENTITY, DATATYPE, DATE, DECISION, DECISION_TABLE, DECRYPTED_TEXT, DEFERRED, DICTIONARY, DISCUSSION_THREAD, DOCUMENT, DOCUMENT_OR_FOLDER, DOUBLE, EMAIL_ADDRESS, EMAIL_RECIPIENT, EMBEDDED_SAIL_THEME_ID, ENCRYPTED_TEXT, EVENT, EXPRESSION, EXTERNAL_REFERENCE, EXTERNAL_REFERENCE_WITH_INDICES, EXTERNAL_SYSTEM_ID, FIXED, FOLDER, FORUM, GROUP, GROUP_TYPE, ID_REFERENCE, INITIAL_CUSTOM_TYPE, INTEGER, INTEGER_KEY, INTERFACE, INTERVAL_D_S, KNOWLEDGE_CENTER, LINKS_CHANNEL_FOLDER, LIST, LIST_OF_ADMINISTERED_PROPERTY, LIST_OF_APPLICATION, LIST_OF_ATTACHMENT, LIST_OF_BEAN, LIST_OF_BIG_RATIONAL, LIST_OF_BINARY, LIST_OF_BOOLEAN, LIST_OF_CHART_COLOR, LIST_OF_COMMUNITY, LIST_OF_CONNECTED_SYSTEM, LIST_OF_CONTENT_COMMUNITY, LIST_OF_CONTENT_CONSTANT, LIST_OF_CONTENT_CUSTOM, LIST_OF_CONTENT_DOCUMENT, LIST_OF_CONTENT_FOLDER, LIST_OF_CONTENT_FREEFORM_RULE, LIST_OF_CONTENT_ITEM, LIST_OF_CONTENT_KNOWLEDGE_CENTER, LIST_OF_CONTENT_RULE, LIST_OF_CURRENCY, LIST_OF_DATA_SOURCE, LIST_OF_DATA_STORE, LIST_OF_DATA_STORE_ENTITY, LIST_OF_DATATYPE, LIST_OF_DATE, LIST_OF_DECISION, LIST_OF_DECISION_TABLE, LIST_OF_DECRYPTED_TEXT, LIST_OF_DEFERRED, LIST_OF_DICTIONARY, LIST_OF_DISCUSSION_THREAD, LIST_OF_DOCUMENT, LIST_OF_DOCUMENT_OR_FOLDER, LIST_OF_DOUBLE, LIST_OF_EMAIL_ADDRESS, LIST_OF_EMAIL_RECIPIENT, LIST_OF_EMBEDDED_SAIL_THEME_ID, LIST_OF_ENCRYPTED_TEXT, LIST_OF_EVENT, LIST_OF_EXPRESSION, LIST_OF_EXTERNAL_REFERENCE, LIST_OF_EXTERNAL_REFERENCE_WITH_INDICES, LIST_OF_EXTERNAL_SYSTEM_ID, LIST_OF_FIXED, LIST_OF_FOLDER, LIST_OF_FORUM, LIST_OF_GROUP, LIST_OF_GROUP_TYPE, LIST_OF_ID_REFERENCE, LIST_OF_INTEGER, LIST_OF_INTEGER_KEY, LIST_OF_INTERFACE, LIST_OF_INTERVAL_D_S, LIST_OF_KNOWLEDGE_CENTER, LIST_OF_LINKS_CHANNEL_FOLDER, LIST_OF_MAP, LIST_OF_MESSAGE, LIST_OF_NOTE, LIST_OF_NULL, LIST_OF_OUTBOUND_INTEGRATION, LIST_OF_PAGE, LIST_OF_PASSWORD, LIST_OF_PORTLET, LIST_OF_PROCESS, LIST_OF_PROCESS_ERROR, LIST_OF_PROCESS_MODEL, LIST_OF_PROCESS_MODEL_FOLDER, LIST_OF_QUERY_RULE, LIST_OF_QUICK_APP, LIST_OF_RANGE, LIST_OF_RECORD, LIST_OF_RECORD_REFERENCE, LIST_OF_RECORD_TYPE_ID, LIST_OF_RICH_TEXT, LIST_OF_RULE_FOLDER, LIST_OF_SAFE_URI, LIST_OF_SITE, LIST_OF_STRING, LIST_OF_STRING_KEY, LIST_OF_TASK, LIST_OF_TASK_REPORT, LIST_OF_TEMPO_FEED, LIST_OF_TEMPO_REPORT, LIST_OF_TIME, LIST_OF_TIMESTAMP, LIST_OF_TYPE, LIST_OF_UNIFORM_FOLDER, LIST_OF_UNION, LIST_OF_USER_OR_GROUP, LIST_OF_USERNAME, LIST_OF_VARIANT, LIST_OF_WEB_API, MAP, MESSAGE, NOTE, NULL, OUTBOUND_INTEGRATION, PAGE, PASSWORD, PORTLET, PROCESS, PROCESS_ERROR, PROCESS_MODEL, PROCESS_MODEL_FOLDER, QUERY_RULE, QUICK_APP, RANGE, RECORD, RECORD_REFERENCE, RECORD_TYPE_ID, RICH_TEXT, RULE_FOLDER, SAFE_URI, SITE, STRING, STRING_KEY, TASK, TASK_REPORT, TEMPO_FEED, TEMPO_REPORT, TIME, TIMESTAMP, TYPE, UI_CONTAINER, UNIFORM_FOLDER, UNION, USER_OR_GROUP, USERNAME, VARIANT, WEB_API
hiddenAttributes$TRANSIENT
Constructor and Description |
---|
TypedVariable()
Deprecated.
Creates an instance.
|
TypedVariable(NamedTypedValue ntv)
Deprecated.
Creates an instance and sets the instance type and value to the instance type and value of the
provided NamedTypedValue.
|
TypedVariable(TypedValue tv)
Deprecated.
Creates an instance and sets the instance type and value to the instance type and value of the
provided TypedValue.
|
Modifier and Type | Method and Description |
---|---|
void |
appendFullName(java.lang.StringBuffer sb_)
Deprecated.
Appends the full name of this variable to the given buffer.
|
protected static void |
appendLocalObject(java.lang.StringBuffer sb_,
LocalObject local_)
Deprecated.
|
protected static void |
appendLocalObject(java.lang.StringBuilder sb_,
LocalObject local_)
Deprecated.
|
protected static void |
appendLocalObjects(java.lang.StringBuffer sb_,
LocalObject[] locals_)
Deprecated.
|
protected static void |
appendLocalObjects(java.lang.StringBuilder sb_,
LocalObject[] locals_)
Deprecated.
|
TypedVariable[] |
children()
Deprecated.
If the type of the variable is BEAN, returns an array of ACPs (Activity
Class Parameters) that are the fields of the bean.
|
java.lang.String |
computeDisplayString(AppianTypeCache cache_)
Deprecated.
This is the same as
#computeDisplayString() , except that the
passed cache is used to get the display value (so that for an Appian
Type, a user-friendly string is returned; for exmple, "Technology"
instead of a number for a GROUP). |
java.lang.String |
computeDisplayString(ServiceContext sc_)
Deprecated.
Use either
computeValueString(ServiceContext) , or
computeValueStringForUiOutput(ServiceContext, boolean, boolean) .
This is the same as #computeValueString() except that if the type
is a String[] , the CSV for the array does have quotes around
the individual strings in the array; for example, an array of users whose
usernames are payton.manning and brett.favre would result in the string
""payton.manning","brett.favre"". |
java.lang.String |
computeValueString(ServiceContext sc_)
Deprecated.
Computes the string representation of the value of this typed variable,
which should be shown to the user.
|
java.lang.String |
computeValueStringForUiOutput(ServiceContext sc_,
boolean wrapInQuotes_,
boolean escapeXml_)
Deprecated.
|
static int |
convertFromLocalObjectType(int localObjectType)
Deprecated.
Convert LocalObject type to Standard type
|
static java.lang.String |
externalize(java.lang.Object value_,
java.lang.Long type_,
boolean multiple_)
Deprecated.
Convert the data passed in to the externalized (String) format
|
static java.lang.String |
externalize(TypedValue tv)
Deprecated.
|
void |
fillInAppianTypes(AppianTypeCache cache_)
Deprecated.
If this typed variable is an Appian Type, adds its primary key to the
cache.
|
static TypedVariable[] |
findAllWithKeyPrefix(TypedVariable[] variables_,
java.lang.String name_)
Deprecated.
Finds all the variables in the given array whose name sarts with the
passed
name_ string. |
static TypedVariable |
findByName(TypedVariable[] variables_,
java.lang.String name_)
Deprecated.
Finds the variable in the given array whose name corresponds to the given
name.
|
int |
getClassType()
Deprecated.
Gets the type classification of this typed variable.
|
int |
getDataType()
Deprecated.
Gets the underlying datatype of this typed variable.
|
static java.lang.Object |
getDefaultPvValue(java.lang.Long type_,
boolean multiple_)
Deprecated.
Returns the default value for a
ProcessVariable of the
given type. |
static java.lang.Object |
getDefaultValue(java.lang.Long type_,
boolean multiple_)
Deprecated.
Returns the default value for the given type.
|
int[] |
getDetailedTypes()
Deprecated.
If the underlying representation of this typed variable is an array,
returns the types of the objects contained in the array.
|
java.util.HashSet |
getHiddenAttributes()
Deprecated.
Returns the set of attributes (properties) that should not be included in
the JSON representation of the object.
|
static java.lang.Class |
getInstanceClass(java.lang.Long type_)
Deprecated.
|
java.lang.String |
getKey()
Deprecated.
|
int |
getMultiple()
Deprecated.
To determine if a type is multiple or not, retrieve its
Datatype
or DatatypeProperties bean via TypeService and use
DatatypeProperties.isListType() . |
static java.lang.Object |
getNumericTypedObjectFromUiInput(java.lang.String value_,
java.lang.Long nType_,
ServiceContext sc_)
Deprecated.
|
static int |
getObjectTypeMappingFromType(int tvType_)
Deprecated.
|
static java.lang.Object |
getScalarTypedObject(java.lang.String val_,
java.lang.Long nType_,
java.lang.Long detailedType_,
ServiceContext sc_)
Deprecated.
Converts the given
String to an object of the given type. |
static java.lang.Object |
getScalarTypedObject(java.lang.String val_,
java.lang.Long nType_,
java.lang.Long detailedType_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
java.lang.Long |
getType()
Deprecated.
|
static java.lang.Object |
getTypedObjectFromUiInput(java.lang.String value_,
java.lang.Long nType_,
java.lang.Long detailedType_,
ServiceContext sc_)
Deprecated.
|
static java.lang.Object[] |
getTypedObjects(java.lang.String[] values_,
java.lang.Long nType_,
int[] detailedTypes_,
ServiceContext sc_)
Deprecated.
Converts the given
String s to objects of the given type. |
static java.lang.Object[] |
getTypedObjectsFromUiInput(java.lang.String[] values_,
java.lang.Long nType_,
int[] detailedTypes_,
ServiceContext sc_)
Deprecated.
|
static TypedVariable[] |
getTypedVariables(NamedTypedValue[] ntvs)
Deprecated.
|
static java.lang.Long |
getTypeForClass(java.lang.Class class_)
Deprecated.
Returns the
TypedVariable type for a given class. |
static int |
getTypeFromObjectTypeMappingType(int otmType_)
Deprecated.
Returns the
TypedVariable type corresponding to a given
ObjectTypeMapping type. |
static java.lang.Class |
getUnderlyingClass(java.lang.Long type_,
boolean multiple_)
Deprecated.
see
TypeClassResolver#getTypeClass(Long) |
protected java.lang.String |
getXMLWrapperEnd()
Deprecated.
|
protected java.lang.String |
getXMLWrapperName()
Deprecated.
|
protected java.lang.String |
getXMLWrapperStart()
Deprecated.
|
protected static java.lang.String |
handleTimestampValue(java.util.Date value_,
int type_,
ServiceContext sc_)
Deprecated.
|
protected static java.lang.String |
handleTimestampValueForUiOutput(java.util.Date value_,
int type_,
ServiceContext sc_)
Deprecated.
|
protected static java.lang.Long |
integerToLong(java.lang.Integer i_)
Deprecated.
|
static TypedVariable |
internalize(java.lang.String externalized)
Deprecated.
Interalizes the externalized String passed in
|
static boolean |
isAppianType(int tvType_)
Deprecated.
Determines whether the given type is an Appian Type (an Appian Type
is any type that has a corresponding TYPE_XXX constant defined in
ObjectTypeMapping ). |
boolean |
isMultipleSupportingType()
Deprecated.
Determines whether the type of this variable could support multiple
values.
|
static boolean |
isNotDeferred(int type_)
Deprecated.
Determines whether the given type is not a deferred type.
|
static boolean |
isValidType(int type_)
Deprecated.
use TypeService
|
void |
putOrAppendTimestamp(java.sql.Timestamp ts_,
ServiceContext sc_)
Deprecated.
Do not use this, as it is meant ONLY for web services.
|
void |
putOrAppendValue(java.lang.String newValAsString_,
ServiceContext sc_)
Deprecated.
Do not use this, as it is meant ONLY for web services.
|
static java.lang.String |
renderArrayAsCsv(java.lang.Object[] values_,
boolean wrapInQuotes_,
boolean escapeXml_,
int type_,
ServiceContext sc_)
Deprecated.
Transforms the given array into a single sting containing a
comma-separated list of the array values.
|
static java.lang.String |
renderArrayAsCsv(java.lang.Object[] values_,
boolean wrapInQuotes_,
boolean escapeXml_,
int type_,
ServiceContext sc_,
int multiple)
Deprecated.
|
static java.lang.String |
renderArrayAsCsv(java.lang.Object[] values_,
boolean wrapInQuotes_,
int type_,
ServiceContext sc_)
Deprecated.
Use either
renderArrayAsCsv(Object[], boolean, boolean, int, ServiceContext) or
#renderArrayAsCsv(Object[], boolean, boolean, int, ServiceContext, char) .
Transforms the given aray into a single string containing a
comma-separated list of the array values. |
static java.lang.String |
renderArrayAsCsv(java.lang.Object[] values_,
boolean wrapInQuotes_,
int type_,
ServiceContext sc_,
int multiple)
Deprecated.
|
static java.lang.String |
renderArrayAsCsvForUiOutput(java.lang.Object[] values_,
boolean wrapInQuotes_,
boolean escapeXml_,
int type_,
ServiceContext sc_)
Deprecated.
|
static java.lang.String |
renderArrayAsString(java.lang.Object[] values_,
boolean wrapInQuotes_,
boolean escapeXml_,
int type_,
ServiceContext sc_,
java.lang.String delim_,
int multiple)
Deprecated.
|
void |
setDetailedTypes(int[] detailedTypes_)
Deprecated.
See
getDetailedTypes() . |
void |
setInstanceType(java.lang.Long instanceType)
Deprecated.
Sets the instance type of the typed value.
|
void |
setKey(java.lang.String key_)
Deprecated.
use
NamedTypedValue#setName() |
void |
setMultiple(int multiple)
Deprecated.
Set the
instance type instead. The
instance type contains the multiple information within it. |
void |
setType(java.lang.Long type)
Deprecated.
use
TypedValue#setInstanceType() |
void |
setTypeMultiple(java.lang.Long type,
int multiple)
Deprecated.
Use
setInstanceType(Long) instead. |
void |
setValue(java.lang.Object value)
Deprecated.
Sets the value of the typed variable.
|
java.lang.String |
toString(java.lang.String[] input_)
Deprecated.
Converts an array of
String s in to a single
String containing a comma-separated list of the passed
strings. |
java.lang.String |
toXML()
Deprecated.
Converts a typed variable to XML.
|
void |
toXML(java.lang.StringBuilder buffer_)
Deprecated.
Appends the XML representation of this typed variable to the given buffer.
|
equals, findNtvByName, findNtvIndexByName, getName, getNtvNames, hashCode, setName, toString
clearPasswordOnTransport, clone, getInstanceType, getInstanceTypeIds, getTypeRef, getValue, setTypeRef
finalize, getClass, notify, notifyAll, wait, wait, wait
clone
setName
public static final boolean classType$TRANSIENT
public static final boolean dataType$TRANSIENT
public static final boolean detailedTypes$TRANSIENT
public static final boolean multipleSupportingType$TRANSIENT
public static final boolean displayName$TRANSIENT
public static final int MAX_TYPE
public static final int LOCAL_USER
public static final int LOCAL_GROUP
public static final int LOCAL_DOCUMENT
public static final int LOCAL_FOLDER
public static final int LOCAL_PORTLET
public static final int LOCAL_PAGE
public static final int LOCAL_FORUM
public static final int LOCAL_TOPIC
public static final int LOCAL_MESSAGE
public static final int LOCAL_KC
public static final int LOCAL_COMMUNITY
public static final int LOCAL_PM
public static final int LOCAL_PROCESS
public static final int LOCAL_TASK
public static final int LOCAL_NODE
public static final int LOCAL_EMAIL_ADDRESS
public TypedVariable()
public TypedVariable(NamedTypedValue ntv)
ntv
- a NamedTypedValue containing the instance type and value to set for the newly
created TypedVariablepublic TypedVariable(TypedValue tv)
tv
- a TypedValue containing the instance type and value to set for the newly created
TypedVariablepublic static TypedVariable[] getTypedVariables(NamedTypedValue[] ntvs)
public java.util.HashSet getHiddenAttributes()
JSONable
getHiddenAttributes
in interface JSONable
getHiddenAttributes
in class TypedValue
@Deprecated public java.lang.String getKey()
NamedTypedValue.getName()
NamedTypedValue.getName()
-
originally, a typed variable was a key/value binding, hence the name is
called "key".@Deprecated public void setKey(java.lang.String key_)
NamedTypedValue#setName()
getKey()
.public int[] getDetailedTypes()
TypedVariable
is PEOPLE and the value
contains 2 groups and 3 users, this method will return an array of size
5, where the first two elements are GROUP and the next 3 are USER.public static int convertFromLocalObjectType(int localObjectType)
localObjectType
- The ObjectTypeMapping
type from the LocalObjectpublic void setValue(java.lang.Object value)
TypedValue
setValue
in class TypedValue
value
- The value to set the typed variable to.public void setDetailedTypes(int[] detailedTypes_)
getDetailedTypes()
.public static boolean isAppianType(int tvType_)
ObjectTypeMapping
).tvType_
- The type to check.true
if the passed type is an Appian Type, and
false
otherwise@Deprecated public static boolean isValidType(int type_)
type_
- The type to check.true
if the passed type is a valid type, and
false
otherwisepublic static boolean isNotDeferred(int type_)
type_
- The type to check.true
if type is NOT deferred, and
false
otherwisepublic java.lang.String toXML()
protected java.lang.String getXMLWrapperName()
protected final java.lang.String getXMLWrapperStart()
protected final java.lang.String getXMLWrapperEnd()
public void toXML(java.lang.StringBuilder buffer_)
public java.lang.String toString(java.lang.String[] input_)
String
s in to a single
String
containing a comma-separated list of the passed
strings.public static java.lang.Object getScalarTypedObject(java.lang.String val_, java.lang.Long nType_, java.lang.Long detailedType_, ServiceContext sc_)
String
to an object of the given type.val_
- The string representation of a value.nType_
- A constant representing the type to which val_
should be converted. This type MUST be a scalar, ie not
XXX_ARRAY
.detailedType_
- The type of the sub-object, which is only useful
if the underlying class is a LocalObject
(ie for
PEOPLE
and CONTENT
types). Otherwise, the
parameter is ignored and can be set to null
.java.lang.IllegalArgumentException
- if nType_
is invalid,
not scalar, or DEFERRED or BEAN@Deprecated public static java.lang.Object getScalarTypedObject(java.lang.String val_, java.lang.Long nType_, java.lang.Long detailedType_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
String
to an object of the given type.val_
- The string representation of a value.nType_
- A constant representing the type to which val_
should be converted. This type MUST be a scalar, ie not
XXX_ARRAY
.detailedType_
- The type of the sub-object, which is only useful
if the underlying class is a LocalObject
(ie for
PEOPLE
and CONTENT
types). Otherwise, the
parameter is ignored and can be set to null
.java.lang.IllegalArgumentException
- if nType_
is invalid,
not scalar, or DEFERRED or BEANpublic static java.lang.Object[] getTypedObjects(java.lang.String[] values_, java.lang.Long nType_, int[] detailedTypes_, ServiceContext sc_)
String
s to objects of the given type.values_
- The strings representing the values.nType_
- A constant representing the type to which each of the passed
values should be converted. This type MUST be a scalar, i.e. not
XXX_ARRAY
.detailedTypes_
- The types of the sub-objects, which are only useful
if the underlying class is a LocalObject
(i.e. for
PEOPLE
and CONTENT
types). Otherwise, the
parameter is ignorred and can be set to null
.java.lang.IllegalArgumentException
- if nType_
is invalid, not
scalar, or DEFERRED or BEANpublic static java.lang.Object[] getTypedObjectsFromUiInput(java.lang.String[] values_, java.lang.Long nType_, int[] detailedTypes_, ServiceContext sc_)
public static java.lang.Object getTypedObjectFromUiInput(java.lang.String value_, java.lang.Long nType_, java.lang.Long detailedType_, ServiceContext sc_)
public static java.lang.Object getNumericTypedObjectFromUiInput(java.lang.String value_, java.lang.Long nType_, ServiceContext sc_)
public void putOrAppendValue(java.lang.String newValAsString_, ServiceContext sc_)
public void putOrAppendTimestamp(java.sql.Timestamp ts_, ServiceContext sc_)
public void appendFullName(java.lang.StringBuffer sb_)
sb_
- The buffer to append the name to.public static TypedVariable findByName(TypedVariable[] variables_, java.lang.String name_)
null
.variables_
- The collection of variables to search.name_
- The name to look for.name_
. If multiple values that meet this criterion
exist (which they should not), the first match is returned. If no such
value exists, or either parameter is null
,
null
is returned.public static TypedVariable[] findAllWithKeyPrefix(TypedVariable[] variables_, java.lang.String name_)
name_
string. If no such variable(s) can be found
or if either of the passed arguments is null
, returns
null
.variables_
- The collection of variables to search.name_
- The name search string.name_
(case-insensitive). If no such variable is found, or
if either argument is null
, null
is returned.public TypedVariable[] children()
null
. Note that this is not
a getXXX
method, so as not to be confused with a property.children
in interface com.appiancorp.core.expr.portable.PortableNamedTypedValueWithChildren
protected static java.lang.Long integerToLong(java.lang.Integer i_)
@Deprecated public static java.lang.Class getUnderlyingClass(java.lang.Long type_, boolean multiple_)
TypeClassResolver#getTypeClass(Long)
>value
.
For most types, this is Long.class
, but for USER and STRING
it is String.class
, for DATE is java.sql.Date.class
,
for TIME is java.sql.Time.class
, for DATETIME is
java.sql.Timestamp.class
, and for arrays it is the array type that
corresponds to an array of the scalar type, such as
Long[].class
.type_
- The type to check, which is one of the type constants defined
by this class.multiple_
- Whether to get the class for the array version of the type.public static java.lang.Long getTypeForClass(java.lang.Class class_)
TypedVariable
type for a given class.class_
- A class.TypedVariable
type corresponding to the passed
class, which is a Long
version of one of the type constants
defined by this class. If the passed class is unknown, returns
DEFERRED
.public static java.lang.Object getDefaultValue(java.lang.Long type_, boolean multiple_)
null
values, so clients should set value to this
instead. For type STRING, the default is empty string, for LONGs it
is 0, and for arrays, it is a 0-length array. For timestamps, the
default is the current time. There is no default value for DEFERRED,
BEAN and BEAN_ARRAY, so this method returns null
(which
will cause an exception if you try to store it).type_
- A type, which is one of the type constants defined by
this class.public static java.lang.Object getDefaultPvValue(java.lang.Long type_, boolean multiple_)
ProcessVariable
of the
given type. For most types this is null
, unless
multiple_
is true
, in which case the value
is a 0-length array. For type LONG, the default value is 0, for DOUBLE
it is 0.0, and for STRING it is "". There is no default value for
DEFERRED, BEAN and BEAN_ARRAY, so this method returns null
(which will cause an exception if you try to store it).type_
- A type, which is one of the type constants defined by
this class.multiple_
- Whether or not the variable is an array.public void fillInAppianTypes(AppianTypeCache cache_)
fillInAppianTypes
in interface AppianTypeHolder
cache_
- The cache to add to.public java.lang.String computeValueString(ServiceContext sc_)
String[]
, the CSV for the array does not quote the
strings in the array; for example, an array of users whose usernames are
payton.manning and brett.favre would result in the string
"payton.manning,brett.favre" which can be fed to a picker as a value.public java.lang.String computeValueStringForUiOutput(ServiceContext sc_, boolean wrapInQuotes_, boolean escapeXml_)
@Deprecated public java.lang.String computeDisplayString(ServiceContext sc_)
computeValueString(ServiceContext)
, or
computeValueStringForUiOutput(ServiceContext, boolean, boolean)
.
This is the same as #computeValueString()
except that if the type
is a String[]
, the CSV for the array does have quotes around
the individual strings in the array; for example, an array of users whose
usernames are payton.manning and brett.favre would result in the string
""payton.manning","brett.favre"".public java.lang.String computeDisplayString(AppianTypeCache cache_)
#computeDisplayString()
, except that the
passed cache is used to get the display value (so that for an Appian
Type, a user-friendly string is returned; for exmple, "Technology"
instead of a number for a GROUP).cache_
- The cache to use to look up the typed variable value.null
if this typed variable is not an
Appian Type.protected static java.lang.String handleTimestampValue(java.util.Date value_, int type_, ServiceContext sc_)
protected static java.lang.String handleTimestampValueForUiOutput(java.util.Date value_, int type_, ServiceContext sc_)
@Deprecated public static java.lang.String renderArrayAsCsv(java.lang.Object[] values_, boolean wrapInQuotes_, int type_, ServiceContext sc_)
renderArrayAsCsv(Object[], boolean, boolean, int, ServiceContext)
or
#renderArrayAsCsv(Object[], boolean, boolean, int, ServiceContext, char)
.
Transforms the given aray into a single string containing a
comma-separated list of the array values.values_
- The array of values to convert to a CSV string.isString_
- Whether the objects are String
s, in which
case they will be surrounded by quotes. The quotes that are used are
XML-escaped (ie they are ").type_
- the type of the things being rendered, as one of the
type contants such as DATE or LONG. Currently, the type is only used
to determine the format with which to render timestamp values.public static java.lang.String renderArrayAsCsv(java.lang.Object[] values_, boolean wrapInQuotes_, int type_, ServiceContext sc_, int multiple)
public static java.lang.String renderArrayAsCsv(java.lang.Object[] values_, boolean wrapInQuotes_, boolean escapeXml_, int type_, ServiceContext sc_)
values_
- The array of values to convert to a CSV string.wrapInQuotes_
- Whether or not the objects are String
s, in
which case they will be surrounded by quotes.escapeXml_
- Whether to escape the quotes (which are only used
if isString_
is true
). If false
,
the " symbol will be used to surround the strings, otherwise "
is used.type_
- the type of the things being rendered, as one of the
type contants such as DATE or LONG. Currently, the type is only used
to determine the format with which to render timestamp values.public static java.lang.String renderArrayAsCsv(java.lang.Object[] values_, boolean wrapInQuotes_, boolean escapeXml_, int type_, ServiceContext sc_, int multiple)
public static java.lang.String renderArrayAsString(java.lang.Object[] values_, boolean wrapInQuotes_, boolean escapeXml_, int type_, ServiceContext sc_, java.lang.String delim_, int multiple)
public static java.lang.String renderArrayAsCsvForUiOutput(java.lang.Object[] values_, boolean wrapInQuotes_, boolean escapeXml_, int type_, ServiceContext sc_)
public int getClassType()
TypeDescriptor.CLASS_XXX
constants, or
CLASS_NONE
if the type is not recognized.public int getDataType()
TypeDescriptor.DATATYPE_XXX
constants, or
DATATYPE_UNKNOWN
if the type is not recognized.public boolean isMultipleSupportingType()
true
), this does
NOT mean that this instance supports multiple values. If the
type is not recognized, this method returns true
by default.protected static void appendLocalObject(java.lang.StringBuffer sb_, LocalObject local_)
protected static void appendLocalObject(java.lang.StringBuilder sb_, LocalObject local_)
protected static void appendLocalObjects(java.lang.StringBuffer sb_, LocalObject[] locals_)
protected static void appendLocalObjects(java.lang.StringBuilder sb_, LocalObject[] locals_)
public static int getTypeFromObjectTypeMappingType(int otmType_)
TypedVariable
type corresponding to a given
ObjectTypeMapping
type.otmType_
- The ObjectTypeMapping
type, defined by one
of the TYPE_XXX
in the ObjectTypeMapping
class.TypedVariable
type which is one of the type
constants defined by this class.public static int getObjectTypeMappingFromType(int tvType_)
public static java.lang.String externalize(java.lang.Object value_, java.lang.Long type_, boolean multiple_)
value_
- the value to converttype_
- the TypedVariable
type to convert tomultiple_
- whether the type can hold multiple valuespublic static java.lang.String externalize(TypedValue tv)
public static TypedVariable internalize(java.lang.String externalized)
externalized
- the externalized StringTypedVariable
representation of the data encoded into the
externalized Stringpublic static java.lang.Class getInstanceClass(java.lang.Long type_)
@Deprecated public int getMultiple()
Datatype
or DatatypeProperties
bean via TypeService
and use
DatatypeProperties.isListType()
.@Deprecated public void setMultiple(int multiple)
instance type
instead. The
instance type contains the multiple information within it.getMultiple()
.@Deprecated public java.lang.Long getType()
TypedValue.getInstanceType()
@Deprecated public void setType(java.lang.Long type)
TypedValue#setInstanceType()
getType()
.@Deprecated public void setTypeMultiple(java.lang.Long type, int multiple)
setInstanceType(Long)
instead.public final void setInstanceType(java.lang.Long instanceType)
setInstanceType
in class TypedValue
instanceType
- The instance type id, which corresponds to a Datatype
.
Built-in datatype ids are defined in AppianType
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.