> List of tutorials

Table of contents for this tutorial

Fat-Client-Development - Universal structure for parameters - Constants

* For this document and all references (links) please obey the hints and regulations concerning copyright, disclaimer and trademarks.

  • The owner of this web-site (www.javascout.biz) is not responsible for the content of web-sites linked within this document or other documents of www.javascout.biz.

  • If this document or other documents of this web-site (www.javascout.biz) infringes your rights or you think that rights of others (third parties) are infringed, please inform the author.
    An e-mail can be sent by clicking onto the 'hungry mailbox' in the upper right corner.

Last revision of this document:
2006-05-05

This is document contains the code for the Constants in an 'Interface'. This Interface is used for Class JSBS_UniversalParameters.
For easy 'cut and paste' ;-)

package js_base.structures;
/**
 
*
 * @author
kurt@javascout.biz
 * @date 2006-05-07
 *
 * @description
 * Constant values for the class JSBS_UniversalParameters.
 * For a detailed description please see at the individual value.
 
*
 * @change-log
 * when         who               why
 * --------------------------------------------------------
 *
 */

public interface JSBS_UniversalParameters_Constants {
/*
 * Control-values
 * --------------
 * Control-values are introduced to control the flow of the code. */
/*
 * Values reflecting the subdirectory-names where parameters are stored. */
/*
 * Subdirectory where the elements for language dependant text is stored. */
    public static String CONST_TEXT_SUBDIRECTORY_NAME = TEXT“;
/* Names of the files within the subdirectory:
 * DisplayStrings.xml: language dependant elements for the GUI
 * Errors.xml: language dependant error-messages
 * Tasklist.xml: language dependant list of detail-frames with external and internal codes */
    public static String CONST_DISPLAYSTRINGS_FILE_NAME = DisplayStrings.xml“;
    public static String CONST_ERRORS_FILE_NAME = Errors.xml“;
    public static String CONST_TASKLIST_FILE_NAME = TaskList.xml“;
/*
 * Subdirectory where the files with connection-parameters
 * (to database or Java-Application-Server) are stored. */
    public static String CONST_CONNECTIONS_SUBDIRECTORY_NAME = “CONNECTIONS“;
/* Names of the files within the subdirectory:
 * DB.xml: parameters for the connection to the database
 * JAS.xml: parameters for the connection to the Java-Application-Server
    public static String
CONST_DB_PARM_FILE_NAME
= DB.xml“;
    public static String CONST_JAS_PARM_FILE_NAME = “JAS.xml“;
/*
 * Subdirectory where the files with the graphic-elements (mostly icons) are stored */
    public static String CONST_GRAPHICS_SUBDIRECTORY_NAME = GRAPHICS“;
/*
 * Subdirectory where the files with the elements of the forms (to be printed) are stored */
    public static String CONST_FORMS_SUBDIRECTORY_NAME
= FORMS“;
/*

 * Values to control which parameter file is read - and which values are read from there -
 * when the class is constructed.
 * These values are introduced as - depending where the data is stored and retrieved from -
 * either a connection to the database or to a JAS (Java-Application-Server) has to be
 * established. */

    
public static int CONST_LOAD_DB_ATTRIBUTES = 1;

    public static int CONST_LOAD_JAS_ATTRIBUTES = 2;
/*
 *
 * Status-code
 * -----------
 * Values that are returned from methods or stored in the 'StatusCode' value of the class.
 * Stat
us-codes are introduced to signal a calling method if the construction of the class
 * or a method of the class ended error-free (CONST_OK)
 * or encountered an error - and which kind of error happened.
 */

    
public static int CONST_OK = 0;
}