Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright (c) 2014, Francis Galiegue (
  * This software is dual-licensed under:
  * - the Lesser General Public License (LGPL) version 3.0 or, at your option, any
  *   later version;
  * - the Apache Software License (ASL) version 2.0.
 * The text of this file and of both licenses is available at the root of this
 * project or, if you have the jar distribution, in directory META-INF/, under
 * the names LGPL-3.0.txt and ASL-2.0.txt respectively.
 * Direct link to the sources:
 * - LGPL 3.0:
 * - ASL 2.0:
package com.github.fge.jsonschema.format;
Interface for a format attribute validator
public interface FormatAttribute
Return the set of JSON Schema types this format attribute applies to

It is important that this method be implemented correctly. Remind that validation for a given format attribute and an instance which type is not supported always succeeds.

the set of supported types

Validate the instance against this format attribute

report the report to use
bundle the message bundle to use
data the validation data
com.github.fge.jsonschema.core.exceptions.ProcessingException an exception occurs (normally, never for a format attribute)
    void validate(final ProcessingReport reportfinal MessageBundle bundle,
        final FullData data)
        throws ProcessingException;
New to GrepCode? Check out our FAQ X