|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlive.struts.forms.Validations
Handles validations for all LIVE
Field Summary | |
protected static boolean |
ALLOW_UNGROUPED
|
protected static boolean |
DISALLOW_UNGROUPED
|
Constructor Summary | |
Validations()
|
Method Summary | |
protected static void |
validateGroupName(LiveForm form,
String groupName,
boolean allowUngrouped)
Validates a group name, generates an error if the group name is not correct |
protected static void |
validateGuestName(LiveForm form,
String guestName)
Validates a guest name, adds an error if it is incorrect |
protected static void |
validateInt(LiveForm form,
String parameter,
String key)
Validates a string to make sure it can become an int |
protected static void |
validateMemory(LiveForm form,
String memory,
String defOrMax)
Validates a memory value and adds an error if it is incorrect. |
protected static void |
validateNetworkName(LiveForm form,
String netName)
Validates a network name, adds an error if it is incorrect |
protected static void |
validateNetworkPort(LiveForm form,
String portName)
Validates a network's port, adds an error if it is incorrect |
protected static void |
validateNetworkRAddr(LiveForm form,
String addr)
Validates a network's real device address, adds an error if it is incorrect |
protected static void |
validatePassword(LiveForm form,
String password)
Validates a password, adds an error if it is incorrect |
protected static void |
validatePasswordMatch(LiveForm form,
String password,
String confirmation)
Ensures that the password and confirmation password match |
protected static void |
validateSegmentName(LiveForm form,
String segName)
Validates a saved segment name, adds an error if it is incorrect |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final boolean ALLOW_UNGROUPED
protected static final boolean DISALLOW_UNGROUPED
Constructor Detail |
public Validations()
Method Detail |
protected static void validateGroupName(LiveForm form, String groupName, boolean allowUngrouped)
form
- The form you are usinggroupName
- Group name to validateallowUngrouped
- Whether (ungrouped) is a valid groupnameprotected static void validateMemory(LiveForm form, String memory, String defOrMax)
form
- Form you are usingmemory
- Memory value to checkdefOrMax
- Whether the memory value is for default or maximum memoryprotected static void validateGuestName(LiveForm form, String guestName)
form
- Form you are usingguestName
- Guest name to validateprotected static void validatePassword(LiveForm form, String password)
form
- Form you are usingpassword
- Passwor to validateprotected static void validatePasswordMatch(LiveForm form, String password, String confirmation)
form
- Form you are usingpassword
- Original passwordconfirmation
- Confirmation passwordprotected static void validateInt(LiveForm form, String parameter, String key)
form
- Form you are usingparameter
- String that you want to convert to an intkey
- Description of parameter, for error creationprotected static void validateSegmentName(LiveForm form, String segName)
form
- The form you are usingsegName
- The name of the segment you wish to validateprotected static void validateNetworkName(LiveForm form, String netName)
form
- The form you are usingnetName
- The name of the network you wish to validateprotected static void validateNetworkPort(LiveForm form, String portName)
form
- The form you are usingportName
- The portname you wish to validateprotected static void validateNetworkRAddr(LiveForm form, String addr)
form
- The form you are usingaddr
- The real device address you wish to validate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |