Package org.apache.juneau.marshall
Class SubItemsAnnotation
java.lang.Object
org.apache.juneau.marshall.SubItemsAnnotation
Utility classes and methods for the
@SubItems annotation.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SubItemsAnnotation.Buildercreate()Instantiates a new builder for this class.static booleanReturnstrue if the specified annotation contains all default values.static JsonMapMerges the contents of the specified annotation into the specified generic map.
-
Field Details
-
DEFAULT
Default value
-
-
Method Details
-
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.
-
merge
Merges the contents of the specified annotation into the specified generic map.- Parameters:
om- The map to copy the contents to. Can benull (a new map is created).a- The annotation to apply. Can benull (returns the map unchanged).- Returns:
- The same map (or a new map if
om wasnull ) with the annotation contents applied. - Throws:
ParseException- Invalid JSON found in value.
-