|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.instantbank.lettertemplate.editor.web.VariablesManager
Auxiliary class that manages the information related to variables.
Field Summary | |
static int |
CODE
Code's position inside a variable's slot. |
static long |
DEFAULT_DATE_FORMAT
|
static long |
DEFAULT_NUMBER_FORMAT
|
static long |
DEFAULT_STRING_FORMAT
|
static int |
NAME
Name's position inside a variable's slot. |
static int |
OFFSET
Offset type's position inside a variable slot. |
private java.util.ArrayList |
theVars
Variables related information: ArrayList of ArrayList of < code, name, type, dateOffsetType> |
static int |
TYPE
Type's position inside a variable's slot. |
Constructor Summary | |
VariablesManager(java.util.ArrayList varsInfo)
VariablesManager constructor. |
Method Summary | |
java.util.ArrayList |
assocCode(java.lang.Long code)
Searches a variable --by its code-- inside the variable
information structure . |
java.util.ArrayList |
assocName(java.lang.String name)
Searches a variable --by its name-- inside the variable
information structure . |
java.lang.String |
buildNameWithFormat(java.lang.Long varCode,
java.lang.Long formatCode)
Delivers an internal name for the variable. |
java.lang.Long |
getCode(java.lang.String name)
Delivers the code of a variable, after its name. |
java.lang.String |
getName(java.lang.Long code)
Delivers the variable's name, after its code. |
java.lang.String |
getOffsetType(java.lang.Long code)
Delivers the type of offset for Date variables: "no", "workable", "chronological" |
java.lang.String |
getType(java.lang.Long code)
Delivers the type of the variable, after its code. |
java.lang.String |
getType(java.lang.String name)
Delivers the type of the variable, after its name. |
boolean |
isVarUndef(long code)
Test if a variable code corresponds to the undefined value. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final long DEFAULT_STRING_FORMAT
public static final long DEFAULT_NUMBER_FORMAT
public static final long DEFAULT_DATE_FORMAT
private java.util.ArrayList theVars
public static final int CODE
public static final int NAME
public static final int TYPE
public static final int OFFSET
Constructor Detail |
public VariablesManager(java.util.ArrayList varsInfo)
varsInfo
- The variables info.Method Detail |
public java.util.ArrayList assocName(java.lang.String name)
variable
information structure
.name
- Variable's name.public java.util.ArrayList assocCode(java.lang.Long code)
variable
information structure
.code
- The variable's code.public java.lang.Long getCode(java.lang.String name)
name
- public java.lang.String getName(java.lang.Long code)
code
- public java.lang.String buildNameWithFormat(java.lang.Long varCode, java.lang.Long formatCode)
varCode
- The code of the variable.formatCode
- The code of the format.public java.lang.String getType(java.lang.String name)
name
- public java.lang.String getType(java.lang.Long code)
code
- public java.lang.String getOffsetType(java.lang.Long code)
code
- Description of the Parameterpublic boolean isVarUndef(long code)
code
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |