Package com.networknt.schema.annotation
Class JsonNodeAnnotationPredicate
java.lang.Object
com.networknt.schema.annotation.JsonNodeAnnotationPredicate
- All Implemented Interfaces:
Predicate<JsonNodeAnnotation>
A predicate for filtering annotations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for building aJsonNodeAnnotationPredicate
. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JsonNodeAnnotationPredicate
(Predicate<JsonNodePath> instanceLocationPredicate, Predicate<JsonNodePath> evaluationPathPredicate, Predicate<SchemaLocation> schemaLocationPredicate, Predicate<String> keywordPredicate, Predicate<Object> valuePredicate) Initialize a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a new builder to create the predicate.Gets the predicate to filter on evaluationPath.Gets the predicate to filter on instanceLocation.Gets the predicate to filter on keyword.Gets the predicate to filter on schemaLocation.Gets the predicate to filter on value.boolean
-
Constructor Details
-
JsonNodeAnnotationPredicate
protected JsonNodeAnnotationPredicate(Predicate<JsonNodePath> instanceLocationPredicate, Predicate<JsonNodePath> evaluationPathPredicate, Predicate<SchemaLocation> schemaLocationPredicate, Predicate<String> keywordPredicate, Predicate<Object> valuePredicate) Initialize a new instance of this class.- Parameters:
instanceLocationPredicate
- for instanceLocationevaluationPathPredicate
- for evaluationPathschemaLocationPredicate
- for schemaLocationkeywordPredicate
- for keywordvaluePredicate
- for value
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<JsonNodeAnnotation>
-
getInstanceLocationPredicate
Gets the predicate to filter on instanceLocation.- Returns:
- the predicate
-
getEvaluationPathPredicate
Gets the predicate to filter on evaluationPath.- Returns:
- the predicate
-
getSchemaLocationPredicate
Gets the predicate to filter on schemaLocation.- Returns:
- the predicate
-
getKeywordPredicate
Gets the predicate to filter on keyword.- Returns:
- the predicate
-
getValuePredicate
Gets the predicate to filter on value.- Returns:
- the predicate
-
builder
Creates a new builder to create the predicate.- Returns:
- the builder
-