Package com.networknt.schema.annotation
Class JsonNodeAnnotation
java.lang.Object
com.networknt.schema.annotation.JsonNodeAnnotation
The annotation.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJsonNodeAnnotation
(String keyword, JsonNodePath instanceLocation, SchemaLocation schemaLocation, JsonNodePath evaluationPath, Object value) -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonNodeAnnotation.Builder
builder()
boolean
The evaluation path, indicating how reference keywords such as "$ref" were followed to reach the absolute schema location.The instance location to which it is attached, as a JSON Pointer.The keyword that produces the annotation.The schema location of the attaching keyword, as a IRI and JSON Pointer fragment.<T> T
getValue()
The attached value(s).int
hashCode()
toString()
-
Constructor Details
-
JsonNodeAnnotation
public JsonNodeAnnotation(String keyword, JsonNodePath instanceLocation, SchemaLocation schemaLocation, JsonNodePath evaluationPath, Object value)
-
-
Method Details
-
getKeyword
The keyword that produces the annotation.- Returns:
- the keyword
-
getInstanceLocation
The instance location to which it is attached, as a JSON Pointer.- Returns:
- the instance location
-
getSchemaLocation
The schema location of the attaching keyword, as a IRI and JSON Pointer fragment.- Returns:
- the schema location
-
getEvaluationPath
The evaluation path, indicating how reference keywords such as "$ref" were followed to reach the absolute schema location.- Returns:
- the evaluation path
-
getValue
public <T> T getValue()The attached value(s).- Type Parameters:
T
- the value type- Returns:
- the value
-
toString
-
hashCode
public int hashCode() -
equals
-
builder
-