Annotation Type DefaultTypeValue
@Documented
@Constraint(validatedBy={StixDefaultTypeValueBundleableValidator.class,StixDefaultTypeValueBundleObjectValidator.class,StixDefaultTypeValueCyberObservableValidator.class,StixDefaultTypeValueCyberObservableExtensionValidator.class})
@Target({ANNOTATION_TYPE,TYPE})
@Retention(RUNTIME)
public @interface DefaultTypeValue
Sets the default value of the type field for a Bundleable object.
This annotation must only be applied on a Class level of a class that extends from Bundleable object
(Typically SDOs, SROs, COOs, COO-Extensions, and Marking Definitions).
This annotation will also validate a manually set type attribute.
If the type attribute does not equal the value set in this annotation, then validation will fail.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements