|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.fe.statemachine.ext.validation.Constants
public final class Constants
This is the Constants Class. This class uses the BankframeConstant.properties to populate all it's constants.
Field Summary | |
---|---|
static String |
BANKFRAME_CONSTANTS
|
static String |
DESC_SEPERATOR
|
static String |
END_OF_VALUES
|
static String |
LENGTH_INDICATOR
|
static String |
NO_DESCRIPTION_FOUND_FOR_CODE
|
static String |
PATTERN_INDICATOR
|
static String |
START_OF_VALUES
|
static String |
TEXT_INDICATOR
|
static String[] |
VALID_TYPES
|
static String |
VALUE_SEPERATOR
|
Constructor Summary | |
---|---|
Constants()
|
Method Summary | |
---|---|
static boolean |
checkForUpdates()
This method returns the checkForUpdates value |
static String |
getDescriptionForValue(String key,
Object code)
This method will return a description for a value given the constant key. |
static int |
getLength(String key)
This method gets the length for a given length key. |
static String |
getPattern(String key)
This method gets the pattern for a given pattern key. |
static String |
getText(String key)
This method gets the text for a given text key. |
static Vector |
getValueDescriptionsList(String key)
This method returns a Vector containing all the constant values for a particular key |
static Object |
getValueForDescription(String key,
String desc)
This method will return a value for a description given the constant key. |
static Object |
getValueInList(int positionNo,
String key)
This method returns the value in a constants list for a given key given it's position. |
static Vector |
getValueList(String key)
This method returns a Vector containing all the constant values for a particular key |
static boolean |
isAValidValue(String key,
Object value)
This method checks to see if a value is a valid constant value |
static void |
main(String[] args)
This method runs the Constants class as an application. |
static void |
refresh()
This method forces a complete refresh of the constants. |
static void |
setCheckForUpdates(boolean newCheckForUpdates)
This method sets the checkForUpdates instance variable. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BANKFRAME_CONSTANTS
public static final String[] VALID_TYPES
public static final String NO_DESCRIPTION_FOUND_FOR_CODE
public static final String START_OF_VALUES
public static final String END_OF_VALUES
public static final String VALUE_SEPERATOR
public static final String DESC_SEPERATOR
public static final String LENGTH_INDICATOR
public static final String PATTERN_INDICATOR
public static final String TEXT_INDICATOR
Constructor Detail |
---|
public Constants()
Method Detail |
---|
public static boolean checkForUpdates()
public static String getDescriptionForValue(String key, Object code) throws ValidationException
key
- Stringcode
- Object
ValidationException
public static int getLength(String key) throws ValidationException
key
- String
ValidationException
public static String getPattern(String key) throws ValidationException
key
- String
ValidationException
public static String getText(String key) throws ValidationException
key
- String
ValidationException
public static Vector getValueDescriptionsList(String key) throws ValidationException
key
- String
ValidationException
public static Object getValueForDescription(String key, String desc) throws ValidationException
key
- Stringdesc
- String
ValidationException
public static Object getValueInList(int positionNo, String key) throws ValidationException
positionNo
- intkey
- String
ValidationException
public static Vector getValueList(String key) throws ValidationException
key
- String
ValidationException
public static boolean isAValidValue(String key, Object value) throws ValidationException
key
- Stringvalue
- Object
ValidationException
- is thrown if the constants for the key cannot be found.public static void main(String[] args)
args
- java.lang.String[]public static void refresh() throws ValidationException
ValidationException
public static void setCheckForUpdates(boolean newCheckForUpdates)
newCheckForUpdates
- boolean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |