com.github.fge.jsonschema.format.helpers
Class IPv4FormatAttribute

java.lang.Object
  extended by com.github.fge.jsonschema.format.AbstractFormatAttribute
      extended by com.github.fge.jsonschema.format.helpers.IPv4FormatAttribute
All Implemented Interfaces:
FormatAttribute

public final class IPv4FormatAttribute
extends AbstractFormatAttribute

Validator for both the ip-address (draft v3) and ipv4 (draft v4) format attributes.

This uses Guava's InetAddresses to do the job.


Constructor Summary
IPv4FormatAttribute(String fmt)
           
 
Method Summary
 void validate(ProcessingReport report, MessageBundle bundle, FullData data)
          Validate the instance against this format attribute
 
Methods inherited from class com.github.fge.jsonschema.format.AbstractFormatAttribute
newMsg, supportedTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPv4FormatAttribute

public IPv4FormatAttribute(String fmt)
Method Detail

validate

public void validate(ProcessingReport report,
                     MessageBundle bundle,
                     FullData data)
              throws ProcessingException
Description copied from interface: FormatAttribute
Validate the instance against this format attribute

Parameters:
report - the report to use
bundle - the message bundle to use
data - the validation data
Throws:
ProcessingException - an exception occurs (normally, never for a format attribute)