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:
Tutorial on Annitations
  • Method Summary

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

    • getKey

      java.lang.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

      java.lang.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​(java.lang.String key, java.lang.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