public final class IPv4FormatAttribute extends AbstractFormatAttribute
ip-address
(draft v3) and ipv4
(draft
v4) format attributes.
This uses Guava's InetAddresses
to do the job.
Constructor and Description |
---|
IPv4FormatAttribute(String fmt) |
Modifier and Type | Method and Description |
---|---|
void |
validate(ProcessingReport report,
MessageBundle bundle,
FullData data)
Validate the instance against this format attribute
|
newMsg, supportedTypes
public IPv4FormatAttribute(String fmt)
public void validate(ProcessingReport report, MessageBundle bundle, FullData data) throws ProcessingException
FormatAttribute
report
- the report to usebundle
- the message bundle to usedata
- the validation dataProcessingException
- an exception occurs (normally, never for a
format attribute)