public interface Validatable
TypedVariable
.TypedVariable
Modifier and Type | Field and Description |
---|---|
static int |
MUTABLE_AT_DESIGNER_DISCRETION |
static int |
MUTABLE_BY_END_USER |
static int |
MUTABLE_NOT_BY_END_USER |
static int |
NULLABLE_ADMIN_AND_DESIGN
May not have a default value, but still required by the runtime user.
|
static int |
NULLABLE_BY_ALL
Not required at all.
|
static int |
NULLABLE_NOT_AT_ALL
Must have a default value, must have a value submitted by the runtime user.
|
Modifier and Type | Method and Description |
---|---|
void |
addAllMessages(java.util.List newMessages_)
Adds all of the messages in the given list to the collection of validation messages
maintained by this object.
|
void |
addValidationMessage(java.lang.String message_)
Adds the given validation message to the collection maintained by this object.
|
void |
clearValidationMessages()
Clears the collection of validation messages accumulated by this object.
|
int[] |
getDetailedTypes()
Gets the type array of Appian Object(s) selected within the picker.
|
java.lang.String |
getFriendlyName()
Gets a name that can be shown to an end user.
|
java.lang.Long |
getInstanceType()
Retrieves the type id, which corresponds to a
Datatype . |
java.lang.String |
getKey()
Gets the name of this variable.
|
int |
getMultiple()
Does this object support a value that is an array?
|
java.lang.Long |
getMutable()
Determines whether this object can be modified by the user.
|
java.lang.Long |
getNullable()
Determines whether this object can be set to null, or an empty string.
|
java.lang.Long |
getType()
Deprecated.
Use getInstanceType()
|
java.util.List |
getValidationMessages()
Retrieves the list of validation messages that have been added to this object by a
validator.
|
java.lang.Object |
getValue()
Retrieves the value of this object.
|
void |
setDetailedTypes(int[] detailedTypes_)
See
getDetailedTypes() . |
void |
setInstanceType(java.lang.Long type_)
Sets the type id, which corresponds to a
Datatype . |
void |
setMultiple(int multiple_)
See
getMultiple() . |
void |
setValue(java.lang.Object value_)
See
getValue() . |
static final int NULLABLE_NOT_AT_ALL
static final int NULLABLE_BY_ALL
static final int NULLABLE_ADMIN_AND_DESIGN
static final int MUTABLE_NOT_BY_END_USER
static final int MUTABLE_BY_END_USER
static final int MUTABLE_AT_DESIGNER_DISCRETION
java.lang.Long getNullable()
NULLABLE_XXX
constants (defined by this interface)
indicating the nullability of the object.java.lang.Long getMutable()
MUTABLE_XXX
constants defined by this interface.java.lang.Object getValue()
String
or a Long
),
without the metadata.void setValue(java.lang.Object value_)
getValue()
.@Deprecated java.lang.Long getType()
TypedVariable
.TypedVariable
java.lang.Long getInstanceType()
Datatype
.
Built-in datatype ids are defined in AppianType
void setInstanceType(java.lang.Long type_)
Datatype
.
Built-in datatype ids are defined in AppianType
java.util.List getValidationMessages()
String
s representing the validation messages.void addValidationMessage(java.lang.String message_)
getValidationMessages()
.message_
- The validation message to add.void clearValidationMessages()
getValidationMessages()
will return an empty list, unless there
are intervening calls to addValidationMessage()
.void addAllMessages(java.util.List newMessages_)
newMessages_
- A list of validation messages to add, each of which is a String
.java.lang.NullPointerException
- - if the specified collection is nulljava.lang.String getKey()
String
.java.lang.String getFriendlyName()
getKey()
. Some types of variables, however, have more
descriptive text sitting around, and can return that. Basically, end users know about
labels, not variable names.String
.int getMultiple()
TypedVariable.ALWAYS
or TypedVariable.NEVER
void setMultiple(int multiple_)
getMultiple()
.int[] getDetailedTypes()
TypedVariable
void setDetailedTypes(int[] detailedTypes_)
getDetailedTypes()
.Copyright © 2003-2024 Appian Corporation. All Rights Reserved.