Package com.networknt.schema.annotation
Class JsonNodeAnnotations
- java.lang.Object
-
- com.networknt.schema.annotation.JsonNodeAnnotations
-
public class JsonNodeAnnotations extends java.lang.ObjectThe JSON Schema annotations.- See Also:
- Details of annotation collection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonNodeAnnotations.FormatterFormatter for pretty printing the annotations.
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<JsonNodePath,java.util.List<JsonNodeAnnotation>>valuesStores 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.voidput(JsonNodeAnnotation annotation)Puts the annotation.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-