Annotation Type ExtensionHolder


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface ExtensionHolder
    An annotation to indicate that a field is intended to hold “extensions”. Such a field will store any unknown property that is associated with the object the field belongs to.

    This is how the LinkML-Java runtime supports LinkML’s extra_slots.allowed: True feature.

    Only a field typed as a Map<String, Object> should be annotated with this annotation.