Package com.networknt.schema.annotation
Class JsonNodeAnnotations
- java.lang.Object
-
- com.networknt.schema.annotation.JsonNodeAnnotations
-
public class JsonNodeAnnotations extends java.lang.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.
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<JsonNodePath,java.util.List<JsonNodeAnnotation>>
values
Stores the annotations.
-
Constructor Summary
Constructors Constructor Description JsonNodeAnnotations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<JsonNodePath,java.util.List<JsonNodeAnnotation>>
asMap()
Gets the annotations.void
put(JsonNodeAnnotation annotation)
Puts the annotation.java.lang.String
toString()
-
-
-
Field Detail
-
values
private final java.util.Map<JsonNodePath,java.util.List<JsonNodeAnnotation>> values
Stores the annotations.instancePath to annotation
-
-
Method Detail
-
asMap
public java.util.Map<JsonNodePath,java.util.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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-