Package org.apache.juneau.annotation
Class SchemaAnnotation
java.lang.Object
org.apache.juneau.annotation.SchemaAnnotation
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Applies targetedSchema
annotations to aContext.Builder
.static @interface
A collection of@Schema annotations
.static class
Builder class. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JsonMap
Converts the specified@Schema annotation into a generic map.static SchemaAnnotation.Builder
create()
Instantiates a new builder for this class.static SchemaAnnotation.Builder
Instantiates a new builder for this class.static SchemaAnnotation.Builder
Instantiates a new builder for this class.static boolean
Returnstrue if the specified annotation contains all default values.
-
Field Details
-
DEFAULT
Default value
-
-
Constructor Details
-
SchemaAnnotation
public SchemaAnnotation()
-
-
Method Details
-
create
Instantiates a new builder for this class.- Returns:
- A new builder object.
-
create
Instantiates a new builder for this class.- Parameters:
on
- The targets this annotation applies to.- Returns:
- A new builder object.
-
create
Instantiates a new builder for this class.- Parameters:
on
- The targets this annotation applies to.- Returns:
- A new builder object.
-
empty
Returnstrue if the specified annotation contains all default values.- Parameters:
a
- The annotation to check.- Returns:
true if the specified annotation contains all default values.
-
asMap
Converts the specified@Schema annotation into a generic map.- Parameters:
a
- The annotation instance. Can benull .- Returns:
- The schema converted to a map, or and empty map if the annotation was null.
- Throws:
ParseException
- Malformed input encountered.
-