|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecte4s.util.E4Object
e4s.html.input.extended.E4ValidatorID
public class E4ValidatorID
Validator for an input field, validating an ID which is a unique identification consisting of characters, "_" or digits. Must start with a character (may not be empty).
E4InputField_Intf.setValidator(e4s.html.input.extended.AEP_ValidationObject_Intf),
E4Fieldset.setValidator(e4s.html.input.extended.E4InputFieldName_Intf, e4s.html.input.extended.AEP_ValidationObject_Intf),
E4EditingDataDescriptor.setValidator(e4s.html.input.extended.E4InputFieldName_Intf, e4s.html.input.extended.AEP_ValidationObject_Intf)| Field Summary | |
|---|---|
protected boolean |
m_can_start_digit
|
protected java.lang.String |
m_characters_allowed
|
protected boolean |
m_empty_denied
|
| Fields inherited from class e4s.util.E4Object |
|---|
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET |
| Constructor Summary | |
|---|---|
E4ValidatorID()
Create a mandatory validator for values that are used as identifiers, allows characters, digits (but not starting with) and the '_' sign. |
|
E4ValidatorID(boolean empty_denied)
Create a validator for values that are used as identifiers, allows characters, digits (but not starting with) or the '_' character. |
|
E4ValidatorID(boolean empty_denied,
java.lang.String characters_allowed)
Create a validator for values that are used as identifiers, allows characters, digits (but not starting with) or include the specified characters. |
|
E4ValidatorID(java.lang.String characters_allowed)
Create a mandatory validator for values that are used as identifiers, allows characters, digits (but not starting with) or include the specified characters. |
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
boolean |
canStartNumeric()
Can the value start with a digit? |
java.lang.String |
getCharactersAllowed()
|
boolean |
isMandatory()
Check, if this validator is mandatory. |
void |
setCharactersAllowed(java.lang.String characters_allowed)
|
void |
setFieldset(char mode,
E4Fieldset fieldset)
Ignored |
void |
startNumeric(boolean numeric)
Can the value start with a digit? |
E4Label_Intf |
validate(E4InputFieldName_Intf name,
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 |
| Field Detail |
|---|
protected boolean m_empty_denied
protected boolean m_can_start_digit
protected java.lang.String m_characters_allowed
| Constructor Detail |
|---|
public E4ValidatorID()
public E4ValidatorID(boolean empty_denied,
java.lang.String characters_allowed)
empty_denied - true means mandatory inputcharacters_allowed - null means no characters allowed or any character is valid that is included in this parameterpublic E4ValidatorID(java.lang.String characters_allowed)
characters_allowed - null means no characters allowed or any character is valid that is included in this parameterpublic E4ValidatorID(boolean empty_denied)
empty_denied - true means mandatory input| Method Detail |
|---|
public java.lang.String getCharactersAllowed()
public void setCharactersAllowed(java.lang.String characters_allowed)
public void startNumeric(boolean numeric)
numeric - true: the value may start with a digit#canStartNumeric(boolean)public boolean canStartNumeric()
startNumeric(boolean)public boolean isMandatory()
isMandatory in interface AEP_ValidationObject_IntfE4InputField.isMandatory()
public E4Label_Intf validate(E4InputFieldName_Intf name,
E4Label_Intf label,
java.lang.String value)
AEP_ValidationObject_Intf
validate in interface AEP_ValidationObject_Intfname - the name of the fieldlabel - the label of the field (translated)value - the current value the user has entered
public void setFieldset(char mode,
E4Fieldset fieldset)
setFieldset in interface AEP_ValidationObject_Intfmode - 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 screenpublic static java.lang.String _getSVNVersionString()
E4Util.getRevisionCodeFromSVN(Class)
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||