Annotation Interface PolymorphicId


@Target(FIELD) @Retention(RUNTIME) @Documented public @interface PolymorphicId
This annotation marks the polymorphic configuration schema field as a special (read only) leaf that will store the current polymorphic configuration type.

NOTE: Field type must be String.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Indicates that the field contains a default value that should be equal to one of the PolymorphicConfigInstance.value().
  • Element Details

    • hasDefault

      boolean hasDefault
      Indicates that the field contains a default value that should be equal to one of the PolymorphicConfigInstance.value().
      Returns:
      hasDefault flag value.
      Default:
      false