public class Variable extends Object implements Serializable
Variable.VariableType
type
. If it is of type DDE, then the name
would be the name/path of the
Data Dictionary Element, else (if it is a Placeholder type) it would be the name given by the user.
If a Variable is marked protected, it's value cannot be edited by the user during Correspondence creation.Modifier and Type | Class and Description |
---|---|
static class |
Variable.VariableSubType
Enum to specify the variable subType, whether its a Enum.
|
static class |
Variable.VariableType
Enum to specify the variable type, whether its a DDE or just a
placeholder.
|
Constructor and Description |
---|
Variable() |
Modifier and Type | Method and Description |
---|---|
String |
getDataModuleName() |
DataType |
getDataType()
Get the data type of the Variable.
|
String |
getDescription()
Get the description for the Variable.
|
String |
getId()
Get the identifier for the Variable.
|
String |
getName()
Get the name for the Variable.
|
Boolean |
getProtect()
Get whether the Variable is protected.
|
Variable.VariableSubType |
getSubType()
Get the type (DDE/PLACEHOLDER) of the Variable.
|
Variable.VariableType |
getType()
Get the type (DDE/PLACEHOLDER) of the Variable.
|
List<String> |
getValueSet()
Returns the list of possible values for this variable.
|
void |
setDataModuleName(String dataModuleId) |
void |
setDataType(DataType dataType)
Sets the data type of the Variable.
|
void |
setDescription(String description)
Sets the description for the Variable.
|
void |
setId(String id)
Sets the identifier for the Variable.
|
void |
setName(String name)
Sets the name for the Variable.
|
void |
setProtect(Boolean protect)
Sets whether the Variable is protected.
|
void |
setSubType(Variable.VariableSubType subType)
Sets the type (DDE/PLACEHOLDER) of the Variable.
|
void |
setType(Variable.VariableType type)
Sets the type (DDE/PLACEHOLDER) of the Variable.
|
void |
setValueSet(List<String> valueSet)
Sets possible values for this variable.
|
public String getId()
public void setId(String id)
id
- The identifier for the Variable.public String getName()
public void setName(String name)
name
- The name for the Variable.public String getDescription()
public void setDescription(String description)
description
- The description for the Variable.public Boolean getProtect()
public void setProtect(Boolean protect)
protect
- Whether the Variable is protected.public Variable.VariableType getType()
public void setType(Variable.VariableType type)
type
- The type (DDE/PLACEHOLDER) of the Variable.public Variable.VariableSubType getSubType()
public void setSubType(Variable.VariableSubType subType)
subType
- The type (DDE/PLACEHOLDER) of the Variable.public List<String> getValueSet()
public void setValueSet(List<String> valueSet)
valueSet
- the list of values for an ENUM Variablepublic DataType getDataType()
DataType
public void setDataType(DataType dataType)
dataType
- The data type of the Variable.DataType
public String getDataModuleName()
public void setDataModuleName(String dataModuleId)
Copyright © 1982–2022 Adobe Systems Inc.. All rights reserved.