public final class KeywordBuilder extends Object implements com.github.fge.jsonschema.util.Thawed<Keyword>
Keyword
Note that you may only supply a SyntaxChecker
for a keyword, but
if you supply a validator class, the digester must also be present.
Modifier and Type | Method and Description |
---|---|
Keyword |
freeze()
Build a frozen version of this builder
|
KeywordBuilder |
withDigester(Digester digester)
Add a digester to this builder
|
KeywordBuilder |
withIdentityDigester(com.github.fge.jsonschema.util.NodeType first,
com.github.fge.jsonschema.util.NodeType... other)
Set this keyword's digester to be an
IdentityDigester |
KeywordBuilder |
withSimpleDigester(com.github.fge.jsonschema.util.NodeType first,
com.github.fge.jsonschema.util.NodeType... other)
Set this keyword's digester to be a
SimpleDigester |
KeywordBuilder |
withSyntaxChecker(com.github.fge.jsonschema.keyword.syntax.SyntaxChecker syntaxChecker)
Add a syntax checker to this builder
|
KeywordBuilder |
withValidatorClass(Class<? extends KeywordValidator> c)
Set the validator class for this keyword
|
public KeywordBuilder withSyntaxChecker(com.github.fge.jsonschema.keyword.syntax.SyntaxChecker syntaxChecker)
syntaxChecker
- the syntax checkerValidationConfigurationError
- syntax checker is nullpublic KeywordBuilder withDigester(Digester digester)
digester
- the digesterValidationConfigurationError
- digester is nullpublic KeywordBuilder withIdentityDigester(com.github.fge.jsonschema.util.NodeType first, com.github.fge.jsonschema.util.NodeType... other)
IdentityDigester
first
- the first instance type supported by this keywordother
- other instance types supported by this keywordValidationConfigurationError
- one or more type(s) are nullpublic KeywordBuilder withSimpleDigester(com.github.fge.jsonschema.util.NodeType first, com.github.fge.jsonschema.util.NodeType... other)
SimpleDigester
first
- the first instance type supported by this keywordother
- other instance types supported by this keywordValidationConfigurationError
- one or more type(s) are nullpublic KeywordBuilder withValidatorClass(Class<? extends KeywordValidator> c)
c
- the classValidationConfigurationError
- failed to find an appropriate
constructorpublic Keyword freeze()
freeze
in interface com.github.fge.jsonschema.util.Thawed<Keyword>
Keyword
Keyword.Keyword(KeywordBuilder)
Copyright © 2014. All Rights Reserved.