Interface TLcdDataTypeBuilder.TypeAnnotationFactory<T extends ILcdAnnotation>

Enclosing class:
TLcdDataTypeBuilder

public static interface TLcdDataTypeBuilder.TypeAnnotationFactory<T extends ILcdAnnotation>

This factory interface offers a convenient way to annotate a type while it is being built. It enables the creation of annotations that require the type on which they work as parameter. Without this interface, these annotations would have to be added after the data model is built. This is possible, but in many cases much less convenient.

  • Method Summary

    Modifier and Type
    Method
    Description
    Creates the annotation that is to be added to the given data type.
  • Method Details

    • createAnnotation

      T createAnnotation(TLcdDataType aType)
      Creates the annotation that is to be added to the given data type.
      Parameters:
      aType - the type to which the annotation is to be added
      Returns:
      the annotation for the given type