public class Variable extends Object implements LocationProvider, Serializable
Function
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
ADD_ATTR |
static String |
CLASS_ATTR |
static String |
CODE_ATTR |
static String |
DECLARE_ATTR |
static String |
DEFAULT_LANG
The DEFAULT LANGUAGE.
|
static String |
DESTINATION_ATTR |
static String |
EXCLUDE_ATTR |
static int |
EXECUTE_AFTER
The EXECUTE AFTER scope.
|
static String |
EXECUTE_AFTER_STR
The EXECUTE_AFTER type.
|
static int |
EXECUTE_AS_CONFIGURED
The EXECUTE AS CONFIGURED scope.
|
static int |
EXECUTE_BEFORE
The EXECUTE BEFORE scope.
|
static String |
EXECUTE_BEFORE_STR
The EXECUTE_BEFORE type.
|
static int |
EXECUTE_RUNTIME
The EXECUTE AT RUNTIME scope.
|
static String |
EXECUTE_RUNTIME_STR
The EXECUTE AT RUNTIME type.
|
static Map<String,Integer> |
EXECUTE_SCOPE
The execution scopes.
|
static String |
FIELD_ATTR |
static String |
FUNCTION_ATTR |
static String |
GLOBAL_ATTR |
static String |
INCLUDE_ATTR |
static String |
JSON_ARRAY_ATTR |
static String |
LABEL_ATTR |
static String |
LANG_ATTR |
static String |
LINKED_ATTR |
static String |
NAME_ATTR |
static String |
NATIVE_TYPE_ATTR
The TYPE NAME ATTRIBUTE.
|
static String |
NATIVETYPE_ATTR |
static String |
NULLABLE_ATTR |
static String |
PARAM_ATTR |
static String |
SCENARIO_VARIABLE_ATTR |
static String |
SCOPE_AFTER_ATTR |
static String |
SCOPE_ATTR |
static String |
SCOPE_BEFORE_ATTR |
static String |
SCOPE_RUNTIME_ATTR |
static String |
SPACE
Substitution for the space character in the variable name.
|
static String |
SQL_ATTR |
static String |
SQL_TYPE_ATTR
The SQL TYPE ATTRIBUTE.
|
static String |
SQLTYPE_ATTR |
static String |
TABLE_NAME_ATTR |
static String |
TAG_NAME_ATTR |
static String |
TOLERATE_ATTR |
static String |
TYPE_ATTR |
static String |
VALUE_ATTR |
static String |
VAR_ATTR |
static String |
XML_ATTR_ATTR |
static String |
XML_CDATA_ATTR |
static String |
XML_HIDDED_IN_NESTED_ATTR |
Constructor and Description |
---|
Variable()
Instantiates a new variable.
|
Modifier and Type | Method and Description |
---|---|
void |
addScope(int value)
Adds the scope.
|
void |
clearAttr(String name)
Removes attribute.
|
Map<String,String> |
getAttrs()
Gets the attributes.
|
String |
getAttrValue(String name)
Gets the attribute value by name.
|
String |
getCode()
Gets the code.
|
String |
getDeclare()
Gets the declare code.
|
Map<String,Object> |
getDefaultValues(boolean isDest)
Gets the default values for the model used to edit variable.
|
String |
getDeNormalizedName(String name)
Gets the de-normailized name.Replaces " " on "_space_".
|
Point |
getEndLocation()
Gets the end location.
|
String |
getEvalName()
Gets the name used by function.
|
String |
getFieldName()
Gets the field name.
|
String |
getFunction()
Gets the function name.
|
String |
getFunctionClassName()
Gets the function class name.
|
String |
getLabel()
Gets the label.
|
String |
getLang()
Gets the code language.
|
CacheProvider<String,Object> |
getLinkedCacheProvider()
Gets the linked cache provider.
|
String |
getLinkedDestination()
Gets the name of the linked destination.
|
String |
getLinkedVarName()
Gets the linked variable name.
|
TypedKeyValue<Point,Point> |
getLocation(String key)
Gets the location of the collection artifact such UI items.
|
Map<String,TypedKeyValue<Point,Point>> |
getLocations()
The the locations of the collection artifacts such UI items.
|
String |
getName()
Gets the name.
|
String |
getNormilizedName(String name)
Get the name.
|
Object |
getObject()
Gets the object.
|
String |
getOriginalName()
Gets the original variable name.
|
String |
getParam()
Gets the parameters.
|
int |
getScope()
Gets the scope.
|
Point |
getStartLocation()
Gets the start location.
|
String |
getTableName()
Gets the table name.
|
String |
getTagName()
Gets the tag name.
|
String |
getType()
Gets the type.
|
String |
getValue()
Gets the value.
|
static Variable |
getVariable(Map<String,Variable> variables,
String... name)
Gets the variable by name(s).
|
String |
getVarValue()
Gets the variable value if value != null && !"".equals(_value).
|
boolean |
isAdd()
Checks if "is add" flag set.
|
boolean |
isDeclare()
Checks if variable need to be declared.
|
boolean |
isGlobal()
Checks if variable is global.
|
boolean |
isInclude()
Checks if "is include" flag set.
|
boolean |
isScopeSet(int value)
Checks if given scope is set.
|
boolean |
isTolerate()
Checks if ignore any exception during function execution flag is set.
|
int |
parseScope(String scope)
Parses the scope string.
|
void |
setAttrs(Map<String,String> value)
Sets the attributes.
|
void |
setAttrValue(String name,
String value)
Sets the attribute value.
|
void |
setCode(String value)
Sets the code.
|
void |
setDeclare(String value)
Sets the declare code.
|
void |
setFieldName(String value)
Sets the field name.
|
void |
setFunction(String value)
Sets the function.
|
void |
setFunctionClassName(String value)
Sets the function class name.
|
void |
setIsAdd(boolean value)
Sets "is add" flag.
|
void |
setIsGlobal(boolean value)
Sets the "is global" flag.
|
void |
setIsInclude(boolean value)
Sets "is include" flag.
|
void |
setIsTolerate(boolean value)
Sets the "tolerate" flag.
|
void |
setLabel(String value)
Sets the label.
|
void |
setLang(String value)
Sets the code language.
|
void |
setLinkedCacheProvider(CacheProvider<String,Object> value)
Sets the linked cache provider.
|
void |
setLinkedDestination(String destination)
Sets the name of the linked destination.
|
void |
setLinkedVarName(String value)
Sets the linked variable name.
|
void |
setLocation(boolean doSet,
String key,
TypedKeyValue<Point,Point> location)
Set the location for the artifacts such UI items.
|
void |
setName(String value)
Sets the name.
|
void |
setObject(Object value)
Sets the object.
|
void |
setParam(String value)
Sets the parameters.
|
void |
setTableName(String value)
Sets the table name.
|
void |
setTagName(String value)
Sets the tag name.
|
void |
setType(String value)
Sets the type.
|
void |
setValue(String value)
Sets the value.
|
public static final String VAR_ATTR
public static final String NAME_ATTR
public static final String TAG_NAME_ATTR
public static final String VALUE_ATTR
public static final String LABEL_ATTR
public static final String SQL_ATTR
public static final String TYPE_ATTR
public static final String GLOBAL_ATTR
public static final String TABLE_NAME_ATTR
public static final String FUNCTION_ATTR
public static final String CLASS_ATTR
public static final String FIELD_ATTR
public static final String CODE_ATTR
public static final String LANG_ATTR
public static final String LINKED_ATTR
public static final String PARAM_ATTR
public static final String SCOPE_ATTR
public static final String SCOPE_BEFORE_ATTR
public static final String SCOPE_AFTER_ATTR
public static final String SCOPE_RUNTIME_ATTR
public static final String DESTINATION_ATTR
public static final String TOLERATE_ATTR
public static final String INCLUDE_ATTR
public static final String EXCLUDE_ATTR
public static final String ADD_ATTR
public static final String DECLARE_ATTR
public static final String SQLTYPE_ATTR
public static final String XML_ATTR_ATTR
public static final String XML_CDATA_ATTR
public static final String XML_HIDDED_IN_NESTED_ATTR
public static final String JSON_ARRAY_ATTR
public static final String NULLABLE_ATTR
public static final String NATIVETYPE_ATTR
public static final String SCENARIO_VARIABLE_ATTR
public static final String SPACE
public static final String DEFAULT_LANG
public static final int EXECUTE_AS_CONFIGURED
public static final int EXECUTE_BEFORE
public static final int EXECUTE_AFTER
public static final int EXECUTE_RUNTIME
public static final String EXECUTE_BEFORE_STR
public static final String EXECUTE_AFTER_STR
public static final String EXECUTE_RUNTIME_STR
public static final String NATIVE_TYPE_ATTR
public static final String SQL_TYPE_ATTR
public static final Map<String,Integer> EXECUTE_SCOPE
public static Variable getVariable(Map<String,Variable> variables, String... name)
variables
- the variablesname
- the name(s) of the variablepublic void addScope(int value)
value
- the scope to addpublic void clearAttr(String name)
name
- the namepublic Map<String,String> getAttrs()
public String getAttrValue(String name)
name
- the attribute name.public String getCode()
Function
public String getDeclare()
public Map<String,Object> getDefaultValues(boolean isDest)
isDest
- if true the default values are for destination variablepublic Point getEndLocation()
LocationProvider
getEndLocation
in interface LocationProvider
public String getEvalName()
public String getFieldName()
public String getFunction()
public String getFunctionClassName()
public String getLabel()
public String getLang()
public CacheProvider<String,Object> getLinkedCacheProvider()
public String getLinkedDestination()
public String getLinkedVarName()
public TypedKeyValue<Point,Point> getLocation(String key)
key
- the artifact type namepublic Map<String,TypedKeyValue<Point,Point>> getLocations()
public String getName()
public String getNormilizedName(String name)
name
- the original namepublic String getDeNormalizedName(String name)
name
- the namepublic Object getObject()
public String getOriginalName()
public String getParam()
public int getScope()
public Point getStartLocation()
LocationProvider
getStartLocation
in interface LocationProvider
public String getTableName()
public String getTagName()
public String getType()
public String getValue()
public String getVarValue()
public boolean isAdd()
public boolean isDeclare()
public boolean isGlobal()
public boolean isInclude()
public boolean isScopeSet(int value)
value
- the scopepublic boolean isTolerate()
public int parseScope(String scope)
scope
- the scope stringpublic void setAttrs(Map<String,String> value)
value
- the new attributespublic void setAttrValue(String name, String value)
name
- the namevalue
- the valuepublic void setCode(String value)
value
- the new codepublic void setDeclare(String value)
value
- the new declare codepublic void setFieldName(String value)
value
- the new field namepublic void setFunction(String value)
value
- the new functionpublic void setFunctionClassName(String value)
value
- the new function class namepublic void setIsAdd(boolean value)
value
- the new value for "is add" flagpublic void setIsGlobal(boolean value)
value
- the new value for "is global" flagpublic void setIsInclude(boolean value)
value
- the new value for "is include" flagpublic void setIsTolerate(boolean value)
value
- the new value for "tolerate" flagpublic void setLabel(String value)
value
- the new labelpublic void setLang(String value)
value
- the new code languagepublic void setLinkedCacheProvider(CacheProvider<String,Object> value)
value
- the new linked cache providerpublic void setLinkedDestination(String destination)
destination
- the new name of the linked destinationpublic void setLinkedVarName(String value)
value
- the new linked variable namepublic void setLocation(boolean doSet, String key, TypedKeyValue<Point,Point> location)
doSet
- if false do not add location info for the artifactkey
- the artifact typelocation
- the locationpublic void setName(String value)
value
- the new namepublic void setObject(Object value)
value
- the new objectpublic void setParam(String value)
value
- the new parameterspublic void setTableName(String value)
value
- the new table namepublic void setTagName(String value)
value
- the new tag namepublic void setType(String value)
value
- the new typepublic void setValue(String value)
value
- the new valueCopyright © 2010-2020 Toolsverse. All Rights Reserved.