com.github.fge.jsonschema.library
Class Library

java.lang.Object
  extended by com.github.fge.jsonschema.library.Library
All Implemented Interfaces:
Frozen<LibraryBuilder>

public final class Library
extends Object
implements Frozen<LibraryBuilder>

A schema keyword library

A library contains all keywords defined for a schema, but also all format attributes.

See Also:
ValidationConfigurationBuilder.addLibrary(String, Library), ValidationConfigurationBuilder.setDefaultLibrary(String, Library), ValidationConfigurationBuilder.setDefaultVersion(SchemaVersion)

Method Summary
 Dictionary<Digester> getDigesters()
          Get the dictionary of digesters
 Dictionary<FormatAttribute> getFormatAttributes()
          Get the dictionary of format attributes
 Dictionary<SyntaxChecker> getSyntaxCheckers()
          Get the dictionary of syntax checkers
 Dictionary<Constructor<? extends KeywordValidator>> getValidators()
          Get the dictionary of keyword validator constructors
static LibraryBuilder newBuilder()
          Create a new, empty library builder
 LibraryBuilder thaw()
          Create a mutable version of this library
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newBuilder

public static LibraryBuilder newBuilder()
Create a new, empty library builder

Returns:
a LibraryBuilder

getSyntaxCheckers

public Dictionary<SyntaxChecker> getSyntaxCheckers()
Get the dictionary of syntax checkers

Returns:
a dictionary

getDigesters

public Dictionary<Digester> getDigesters()
Get the dictionary of digesters

Returns:
a dictionary

getValidators

public Dictionary<Constructor<? extends KeywordValidator>> getValidators()
Get the dictionary of keyword validator constructors

Returns:
a dictionary

getFormatAttributes

public Dictionary<FormatAttribute> getFormatAttributes()
Get the dictionary of format attributes

Returns:
a dictionary

thaw

public LibraryBuilder thaw()
Create a mutable version of this library

Specified by:
thaw in interface Frozen<LibraryBuilder>
Returns:
a LibraryBuilder
See Also:
LibraryBuilder.LibraryBuilder(Library)