public class ValidIPValidator extends Object implements FieldAction
| Constructor and Description |
|---|
ValidIPValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
isIpAddress(String ipAddress) |
Serializable |
validate(String key,
Serializable value,
UsageRecord usageRecord)
Validate (and eventually convert) the value of the property identified by
the key.
|
protected static boolean isIpAddress(String ipAddress)
public Serializable validate(String key, Serializable value, UsageRecord usageRecord) throws InvalidValueException
validate in interface FieldActionkey - The key of the propertyvalue - The value to be validated (and eventually converted) of the
propertyusageRecord - the Usage Record the property is attachedInvalidValueException - if the validation or the eventual
conversion failsCopyright © 2015. All Rights Reserved.