|
Last
revision of this document: |
This
is document contains the code for the Constants in an 'Interface'.
This Interface is used for Class JSBS_XML_Base
and classes which inherit this class.
For easy 'cut and paste' ;-)
package
js_base.xml;
/**
*
* @author kurt@javascout.biz
*
@date 2006-05-18
*
* @description
*
Constant values for the class JSBS_XML_Base and classes derived from
it.
* For a detailed description please see at the
individual value.
*
* @change-log
*
when who why
*
--------------------------------------------------------
*
*/
public
interface JSBS_XML_Constants
{
/*
*
Control-values
* --------------
* Control-values
are introduced to control the flow of the code. */
/*
*
Values reflecting the subdirectory-names where parameters are stored.
*/
/*
*
*
Status-code
* -----------
* Values that are
returned from methods or stored in the 'StatusCode' value of the
class.
* Status-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;
/*
*
FILE_EMPTY: Read successfull but file contains no data */
public
static int CONST_FILE_EMPTY
= 1;
/*
*
NOT_WELL_FORMED: Content of the file violates XML-syntax
*/
public
static int CONST_NOT_WELL_FORMED
=
2;
/*
* Stati concerning <Frame> properties within the
XML-structure. */
/*
*
FRAMEINDIVIDUAL_DIVISION_NOT_PRESENT:
* There is no
<FrameIndividual> division as a direct child of the
root-element. */
public
static int CONST_FRAMEINDIVIDUAL_DIVISION_NOT_PRESENT
=
11;
/*
*
FRAMECLASS_NOT_PRESENT:
* A <Frame> with the searched
<FrameClassName> is not present within the XML-structure.
*/
public
static int CONST_FRAMECLASS_NOT_PRESENT
=
12;
/*
*
FRAMETITLE_NOT_PRESENT:
* The property <FrameTitle> is
not present for the searched <FrameClassName>. */
public
static int CONST_FRAMETITLE_NOT_PRESENT
=
13;
/*
* Stati concerning <Frame> properties within the
XML-structure. */
/*
*
GUI_ELEMENT_NOT_PRESENT:
* There is not even one <Element>
present as a child of a <Frame>.
* This can not be as
every <Frame> has a GUI-<Element>. */
public
static int CONST_GUI_ELEMENT_NOT_PRESENT
=
21;
/*
* Stati concerning <CommonElement> properties within
the XML-structure. */
/*
*
GUI_ELEMENT_COMMON_NOT_PRESENT:
* There was a reference
found to a common GUI-ELEMENT
* but there is no such
element within the XML-structure. */
public
static int CONST_GUI_ELEMENT_COMMON_NOT_PRESENT
=
31;
/*
*
COMMONELEMENTS_DIVISION_NOT_PRESENT:
*
There is no <CommonElements> division as a direct child of the
root-element. */
public
static int CONST_COMMONELEMENTS_DIVISION_NOT_PRESENT
=
32;
/* */
/*
*
UNKNOWN_ERROR: Something went wrong but exact reason is unknown
*/
public
static int CONST_UNKNOWN_ERROR
=
999;
}