Annotation Type BoundAssembly
-
@Documented @Retention(RUNTIME) @Target(FIELD) public @interface BoundAssembly
Identifies that the annotation target is a bound property that references a Module assembly.For XML serialization, the
useName()identifies the name of the element to use and thenamespace()identifies the namespace of this element.For JSON and YAML serializations, the
useName()identifies the property/item name to use.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringdescriptionGet the documentary description of the assembly.StringformalNameGet the documentary formal name of the assembly.intmaxOccursA number that indicates the maximum occurrence of the model instance.intminOccursA non-negative number that indicates the minimum occurrence of the model instance.StringnamespaceThe namespace to use for associated XML elements.StringremarksGet any remarks for this field.StringuseNameThe model name to use for singleton values.
-
-
-
Element Detail
-
formalName
@NonNull String formalName
Get the documentary formal name of the assembly.If the value is "##none", then the description will be considered
null.- Returns:
- a markdown string or
"##none"if no formal name is provided
- Default:
- "##none"
-
-
-
description
@NonNull String description
Get the documentary description of the assembly.If the value is "##none", then the description will be considered
null.- Returns:
- a markdown string or
"##none"if no description is provided
- Default:
- "##none"
-
-
-
minOccurs
int minOccurs
A non-negative number that indicates the minimum occurrence of the model instance.- Returns:
- a non-negative number
- Default:
- 0
-
-
-
maxOccurs
int maxOccurs
A number that indicates the maximum occurrence of the model instance.- Returns:
- a positive number or
-1to indicate "unbounded"
- Default:
- 1
-
-