com.izforge.izpack.sample
Class IPValidator

java.lang.Object
  extended bycom.izforge.izpack.sample.IPValidator
All Implemented Interfaces:
Validator

public class IPValidator
extends java.lang.Object
implements Validator

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

Version:
0.0.1 / 02/19/03
Author:
Elmar Grom

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

IPValidator

public IPValidator()
Method Detail

validate

public boolean validate(ProcessingClient client)
Validates the contend of a 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.

Specified by:
validate in interface Validator
Parameters:
client - the client object using the services of this validator.
Returns:
true if the validation passes, otherwise false.