|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.izforge.izpack.sample.IPValidator
public class IPValidator
This class represents a simple validator for IP addresses to demonstrate
the implementation of a rule validator that cooperates with the
RuleInputField
used in the UserInputPanel
Constructor Summary | |
---|---|
IPValidator()
|
Method Summary | |
---|---|
boolean |
validate(ProcessingClient client)
Validates the contend of a RuleInputField . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IPValidator()
Method Detail |
---|
public boolean validate(ProcessingClient client)
RuleInputField
. The test is
intended for a rule input field composed of four sub-fields. The
combination of their individual content is assumed to represent an IP
address.
validate
in interface Validator
client
- the client object using the services of this validator.
true
if the validation passes, otherwise false
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |