|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.fe.statemachine.ext.validation.Constants
This is the Constants Class. This class uses the BankframeConstant.properties to populate all it's constants.
Field Summary | |
static java.lang.String |
BANKFRAME_CONSTANTS
|
static java.lang.String |
DESC_SEPERATOR
|
static java.lang.String |
END_OF_VALUES
|
static java.lang.String |
LENGTH_INDICATOR
|
static java.lang.String |
NO_DESCRIPTION_FOUND_FOR_CODE
|
static java.lang.String |
PATTERN_INDICATOR
|
static java.lang.String |
START_OF_VALUES
|
static java.lang.String |
TEXT_INDICATOR
|
static java.lang.String[] |
VALID_TYPES
|
static java.lang.String |
VALUE_SEPERATOR
|
Constructor Summary | |
Constants()
|
Method Summary | |
static boolean |
checkForUpdates()
This method returns the checkForUpdates value |
static java.lang.String |
getDescriptionForValue(java.lang.String key,
java.lang.Object code)
This method will return a description for a value given the constant key. |
static int |
getLength(java.lang.String key)
This method gets the length for a given length key. |
static java.lang.String |
getPattern(java.lang.String key)
This method gets the pattern for a given pattern key. |
static java.lang.String |
getText(java.lang.String key)
This method gets the text for a given text key. |
static java.util.Vector |
getValueDescriptionsList(java.lang.String key)
This method returns a Vector containing all the constant values for a particular key |
static java.lang.Object |
getValueForDescription(java.lang.String key,
java.lang.String desc)
This method will return a value for a description given the constant key. |
static java.lang.Object |
getValueInList(int positionNo,
java.lang.String key)
This method returns the value in a constants list for a given key given it's position. |
static java.util.Vector |
getValueList(java.lang.String key)
This method returns a Vector containing all the constant values for a particular key |
static boolean |
isAValidValue(java.lang.String key,
java.lang.Object value)
This method checks to see if a value is a valid constant value |
static void |
main(java.lang.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 java.lang.String BANKFRAME_CONSTANTS
public static final java.lang.String[] VALID_TYPES
public static final java.lang.String NO_DESCRIPTION_FOUND_FOR_CODE
public static final java.lang.String START_OF_VALUES
public static final java.lang.String END_OF_VALUES
public static final java.lang.String VALUE_SEPERATOR
public static final java.lang.String DESC_SEPERATOR
public static final java.lang.String LENGTH_INDICATOR
public static final java.lang.String PATTERN_INDICATOR
public static final java.lang.String TEXT_INDICATOR
Constructor Detail |
public Constants()
Method Detail |
public static boolean checkForUpdates()
public static java.lang.String getDescriptionForValue(java.lang.String key, java.lang.Object code) throws ValidationException
key
- Stringcode
- Object
ValidationException
public static int getLength(java.lang.String key) throws ValidationException
key
- String
ValidationException
public static java.lang.String getPattern(java.lang.String key) throws ValidationException
key
- String
ValidationException
public static java.lang.String getText(java.lang.String key) throws ValidationException
key
- String
ValidationException
public static java.util.Vector getValueDescriptionsList(java.lang.String key) throws ValidationException
key
- String
ValidationException
public static java.lang.Object getValueForDescription(java.lang.String key, java.lang.String desc) throws ValidationException
key
- Stringdesc
- String
ValidationException
public static java.lang.Object getValueInList(int positionNo, java.lang.String key) throws ValidationException
positionNo
- intkey
- String
ValidationException
public static java.util.Vector getValueList(java.lang.String key) throws ValidationException
key
- String
ValidationException
public static boolean isAValidValue(java.lang.String key, java.lang.Object value) throws ValidationException
key
- Stringvalue
- Object
ValidationException
- is thrown if the constants for the key cannot be found.public static void main(java.lang.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 |