Package com.networknt.schema.annotation
Class JsonNodeAnnotations
- java.lang.Object
-
- com.networknt.schema.annotation.JsonNodeAnnotations
-
public class JsonNodeAnnotations extends Object
The JSON Schema annotations.- See Also:
- Details of annotation collection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonNodeAnnotations.Formatter
Formatter for pretty printing the annotations.
-
Constructor Summary
Constructors Constructor Description JsonNodeAnnotations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<JsonNodePath,List<JsonNodeAnnotation>>
asMap()
Gets the annotations.void
put(JsonNodeAnnotation annotation)
Puts the annotation.String
toString()
-
-
-
Method Detail
-
asMap
public Map<JsonNodePath,List<JsonNodeAnnotation>> asMap()
Gets the annotations.instancePath to annotation
- Returns:
- the annotations
-
put
public void put(JsonNodeAnnotation annotation)
Puts the annotation.- Parameters:
annotation
- the annotation
-
-