|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.gui.configurator.nodeeditor.InputValidator
public class InputValidator
This class contains the functionality needed to check the input of the EditorTextFields
and to define the values for the EditorComboBox. In contrast to the ElementType class
this has nothing to do with the XML structure but only with the values of the attributes or inputfields.
Some datatypes already exist in XML as primitives, the definition of those primitives has been taken from the W3C homepage W3C built-in-datatypes specification . The other data-types are defined according to the specification in "base_types.xsd".
Java doesn't support variable type unsigned long, only long. So if a string is parsed with Long.parseLong(),
the maximum value accepted is
9223372036854775807 and negative numbers will also be accepted.
If the pattern "0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}" is used to check the unsigned long, then it works from 0 up to
17999999999999999999 which is closer to the max value of an unsigned long of
18446744073709551615
| Field Summary | |
|---|---|
static String |
AbsoluteHostName
Data-type definition according to base_types.xsd |
static String[] |
booleanOptional
Choice list for EditorComboBox with a neutral Element to indicate no selection |
static String[] |
booleanRequired
Choice list for EditorComboBox where values are required |
static String |
CommaMerge
Regular Expression for EditorMultiTextField |
static String |
CommaSepPattern
Regular Expression for EditorMultiTextField |
static String[] |
DynType
Choice list for EditorComboBox where values are required |
static String |
HostName
Data-type definition according to base_types.xsd |
static String |
integer
XML built-in data-type |
static String |
IPv4
Data-type definition according to base_types.xsd |
static String[] |
LogLevel
Choice list for EditorComboBox with a neutral Element to indicate no selection |
static String |
mac
Data-type definition according to base_types.xsd |
static String |
NMTOKEN
XML built-in data-type. |
static String |
NodeName
Data-type definition according to base_types.xsd |
static String |
NwDNSServer
Regular Expression for EditorMultiTextField |
static String[] |
NwType
Choice list for EditorComboBox where values are required |
static String[] |
OnOff
Choice list for EditorComboBox with a neutral Element to indicate no selection |
static String |
Phonenumber
Data-type definition according to base_types.xsd |
static String[] |
PlatformName
Choice list for EditorComboBox with a neutral Element to indicate no selection |
static String[] |
Protocol
Choice list for EditorComboBox where values are required |
static String |
string
XML built-in data-type |
static String[] |
System
Choice list for EditorComboBox where values are required |
static String |
unsignedLong
XML built-in data-type |
static String |
wepkey
Data-type definition according to base_types.xsd |
static String[] |
YesNo
Choice list for EditorComboBox with a neutral Element to indicate no selection |
| Constructor Summary | |
|---|---|
InputValidator()
|
|
| Method Summary | |
|---|---|
static String |
getToolTip(String message)
Matches a pattern with a short explication. |
static boolean |
go(String regex,
String inputValue)
Function that verifies a string with a regular expression |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String string
public static final String unsignedLong
public static final String integer
public static final String NMTOKEN
public static final String IPv4
public static final String mac
public static final String wepkey
public static final String Phonenumber
public static final String NodeName
public static final String HostName
public static final String AbsoluteHostName
public static final String CommaSepPattern
public static final String CommaMerge
public static final String NwDNSServer
public static final String[] System
public static final String[] DynType
public static final String[] NwType
public static final String[] Protocol
public static final String[] booleanRequired
public static final String[] YesNo
public static final String[] OnOff
public static final String[] LogLevel
public static final String[] PlatformName
public static final String[] booleanOptional
| Constructor Detail |
|---|
public InputValidator()
| Method Detail |
|---|
public static boolean go(String regex,
String inputValue)
regex - The regular expression (Pattern).inputValue - The string to verify.
public static String getToolTip(String message)
message - Valid Arguments for this function are data-type definition from above, i.e.
one of the following: string, unsignedLong, integer, NMTOKEN,
IPv4, mac, wepkey, Phonenumber, NodeName, HostName,
AbsoluteHostName, NwDNSServer.
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||