com.bankframe
Class Constant
java.lang.Object
com.bankframe.Constant
public abstract class Constant
- extends Object
This class represents a collection of constants that are
used within BankFrame.
Method Summary |
abstract DataPacket |
getConstants()
This is the interface for all constants classes. |
void |
validate(String data,
int errorNumber)
This method checks if the parameter data is contained in the constants that
this class represents. |
Constant
public Constant()
getConstants
public abstract DataPacket getConstants()
- This is the interface for all constants classes. Implement this method so that it
- Returns:
- a data packet. The constants should be the values in the data packets.
validate
public void validate(String data,
int errorNumber)
throws ValidationException
- This method checks if the parameter data is contained in the constants that
this class represents. If it is then nothing happens. If it is not then a
ValidationException is thrown.
- Parameters:
data
- value to check for in constantserrorNumber
- Error number to display if data is not found in constants
- Throws:
ValidationException
- Occurs if the parameter data is not contained in the constants this class represents
Copyright © 2005, 2007, Oracle. All rights reserved.