public static final class JsonSchemaFactory.Builder extends Object
JsonSchemaFactory| Modifier and Type | Field and Description |
|---|---|
private KeywordBundle |
bundle
The keyword bundle
|
private URIManager |
uriManager
The URI manager
|
| Constructor and Description |
|---|
JsonSchemaFactory.Builder()
No arg constructor
|
JsonSchemaFactory.Builder(KeywordBundle bundle)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
JsonSchemaFactory.Builder |
addKeyword(Keyword keyword)
Add a schema keyword to the bundle
|
JsonSchemaFactory.Builder |
addURIDownloader(String scheme,
URIDownloader downloader)
Add a
URIDownloader for a given URI scheme |
JsonSchemaFactory |
build()
Build the factory
|
private final KeywordBundle bundle
private final URIManager uriManager
public JsonSchemaFactory.Builder()
This calls Builder#Builder(KeywordBundle) with
KeywordBundles.defaultBundle() as an argument.
public JsonSchemaFactory.Builder(KeywordBundle bundle)
bundle - the keyword bundle to usepublic JsonSchemaFactory.Builder addURIDownloader(String scheme, URIDownloader downloader)
URIDownloader for a given URI schemescheme - the URI schemedownloader - the downloaderNullPointerException - scheme is nullIllegalArgumentException - illegal schemepublic JsonSchemaFactory.Builder addKeyword(Keyword keyword)
keyword - the keyword to addKeywordpublic JsonSchemaFactory build()
Copyright © 2012. All Rights Reserved.