Annotation With

  • All Implemented Interfaces:

    @Target(allowedTargets = {}) 
    public @interface With
    
                        

    A key-value pair for semantic metadata. Used within @Semantics to define semantic properties of a field.

    Kotlin example:

    @Semantics([
        With("predicate", "works at"),
        With("inverse", "employs")
    ])
    val worksAt: Company

    Java example (on class field):

    @Semantics({
        @With(key = "predicate", value = "works at"),
        @With(key = "inverse", value = "employs")
    })
    private Company worksAt;

    Java example (on interface getter):

    public interface Employee {
        @Semantics({
            @With(key = "predicate", value = "works at"),
            @With(key = "inverse", value = "employs")
        })
        Company getWorksAt();
    }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String key
      private final String value
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail