www.element4solution.com

e4s.db.dict
Class E4DBValidatorInterfaces

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.db.dict.E4DBValidatorInterfaces
All Implemented Interfaces:
AEP_ValidationObject_Intf

public class E4DBValidatorInterfaces
extends E4Object
implements AEP_ValidationObject_Intf


Field Summary
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
E4DBValidatorInterfaces(boolean mandatory)
           
E4DBValidatorInterfaces(boolean mandatory, int num)
           
 
Method Summary
static java.lang.String _getSVNVersionString()
           
 boolean isMandatory()
          Check, if an input field based on this validation rule requires a mandatory value.
 void setFieldset(char mode, E4Fieldset fieldset)
          This method is called before the AEP_ValidationObject_Intf.validate(e4s.html.input.extended.E4InputFieldName_Intf,e4s.translate.E4Label_Intf,String) function is called to inform the validating object about other fields values on the screen as well as the mode (update, insert or delete).
 E4Label_Intf validate(E4InputFieldName_Intf fieldname, E4Label_Intf label, java.lang.String value)
          Validate a field during input.
 
Methods inherited from class e4s.util.E4Object
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, toString, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

E4DBValidatorInterfaces

public E4DBValidatorInterfaces(boolean mandatory)

E4DBValidatorInterfaces

public E4DBValidatorInterfaces(boolean mandatory,
                               int num)
Method Detail

isMandatory

public boolean isMandatory()
Description copied from interface: AEP_ValidationObject_Intf
Check, if an input field based on this validation rule requires a mandatory value. This means, that the user must type a value and there will be a special markup within the field's label.

Specified by:
isMandatory in interface AEP_ValidationObject_Intf
Returns:
true, if mandatory
See Also:
E4InputField.isMandatory()

setFieldset

public void setFieldset(char mode,
                        E4Fieldset fieldset)
Description copied from interface: AEP_ValidationObject_Intf
This method is called before the AEP_ValidationObject_Intf.validate(e4s.html.input.extended.E4InputFieldName_Intf,e4s.translate.E4Label_Intf,String) function is called to inform the validating object about other fields values on the screen as well as the mode (update, insert or delete). Normally, this function is not called, except during "editing" (classes in package e4s.html.editing).

Specified by:
setFieldset in interface AEP_ValidationObject_Intf
Parameters:
mode - one of AEP_EditingDataDescriptor_Intf.MODE_INSERT, AEP_EditingDataDescriptor_Intf.MODE_UPDATE or AEP_EditingDataDescriptor_Intf.MODE_DELETE.
fieldset - the fieldset containing all the fields in the editing screen

validate

public E4Label_Intf validate(E4InputFieldName_Intf fieldname,
                             E4Label_Intf label,
                             java.lang.String value)
                      throws java.lang.Exception
Description copied from interface: AEP_ValidationObject_Intf
Validate a field during input.

Specified by:
validate in interface AEP_ValidationObject_Intf
Parameters:
fieldname - the name of the field
label - the label of the field (translated)
value - the current value the user has entered
Returns:
null, if validation is o.k. (no errors) or an error message beeingt displayed and also indicating that the validation has failed.
Throws:
java.lang.Exception

_getSVNVersionString

public static java.lang.String _getSVNVersionString()

www.element4solution.com