Package org.apache.juneau.marshall
Class SchemaAnnotation
java.lang.Object
org.apache.juneau.marshall.SchemaAnnotation
Utility classes and methods for the
@Schema annotation.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonMapConverts the specified@Schema annotation into a generic map.static SchemaAnnotation.Buildercreate()Instantiates a new builder for this class.static booleanReturnstrue if the specified annotation contains all default values.
-
Field Details
-
DEFAULT
Default value
-
-
Method Details
-
asMap
Converts the specified@Schema annotation into a generic map.- Parameters:
a- The annotation instance. Can benull (returns an empty map).- Returns:
- The schema converted to a map, or an empty map if the annotation was null.
- Throws:
ParseException- Malformed input encountered.
-
create
Instantiates a new builder for this class.- Returns:
- A new builder object.
-
empty
Returnstrue if the specified annotation contains all default values.- Parameters:
a- The annotation to check. Can benull (returnstrue ).- Returns:
true if the specified annotation contains all default values.
-