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