Annotation Type 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
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
     
     
    Class<? extends javax.validation.Payload>[]
     
  • Element Details

    • message

      String message
      Default:
      "{io.digitalstate.stix.validation.contraints.defaulttypevalue.DefaultTypeValue}"
    • groups

      Class<?>[] groups
      Default:
      {}
    • payload

      Class<? extends javax.validation.Payload>[] payload
      Default:
      {}
    • value

      String value