Interface AnnotationReference


public interface AnnotationReference
Represents an annotation reference. A reference is a way for an Annotation to refer to an external entity, such as a document, anchor, or permalink. You can find a full list and descriptions of annotation reference types and fields in the Developer Portal.
  • Method Details

    • getTypeName

      String getTypeName()
      Returns the name of the type of this annotation reference.
      Returns:
      the name of the type of this annotation reference
    • getValue

      <T> T getValue(String fieldName, AnnotationReferenceValueType<T> valueType)
      Returns the value of the field with the given name and type.
      Type Parameters:
      T - the Java class that backs the value type
      Parameters:
      fieldName - the name of the annotation reference field
      valueType - the value type of the field
      Returns:
      the value of the field