com.bankframe
Class Constant

java.lang.Object
  extended bycom.bankframe.Constant

public abstract class Constant
extends java.lang.Object

This class represents a collection of constants that are used within BankFrame.

Author:
ETU

Constructor Summary
Constant()
           
 
Method Summary
abstract  DataPacket getConstants()
          This is the interface for all constants classes.
 void validate(java.lang.String data, int errorNumber)
          This method checks if the parameter data is contained in the constants that this class represents.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Constant

public Constant()
Method Detail

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(java.lang.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 constants
errorNumber - 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 © 2004 Siebel Systems, Inc. All rights reserved.