com.github.fge.jsonschema.format.common
Class URIAttribute

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

public final class URIAttribute
extends AbstractFormatAttribute

Validator for the uri format attribute.

Note that each and any URI is allowed. In particular, it is not required that the URI be absolute or normalized.


Method Summary
static FormatAttribute getInstance()
           
 void validate(ProcessingReport report, 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
 

Method Detail

getInstance

public static FormatAttribute getInstance()

validate

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

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


Copyright © 2014. All Rights Reserved.