Interface Annotation

All Known Implementing Classes:
AnnotationImpl

public interface Annotation
An annotation can contain compile-time meta-information that can be queried via VMFs reflection API (Reflect). Model entities as well as properties can be annotated.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    equals(String key, String value)
    Determines whether this annotation object is equal to the specified key and value.
    Returns the annotation key which can be an arbitrary string.
    Returns the annotation value which can be an arbitrary string.
  • Method Details

    • getKey

      String getKey()
      Returns the annotation key which can be an arbitrary string. Keys are used to group annotations into categories.
      Returns:
      annotation key, e.g., "api" or "model"
    • getValue

      String getValue()
      Returns the annotation value which can be an arbitrary string. Consumers of the annotation are responsible for parsing the value string.
      Returns:
      annotation value, e.g., "min=3;max=27"
    • equals

      default boolean equals(String key, String value)
      Determines whether this annotation object is equal to the specified key and value.
      Returns:
      true if this object is equal to the specified key and value; false otherwise