All Superinterfaces:
org.opendaylight.yangtools.concepts.Identifiable<JavaTypeName>, Type

public interface AnnotationType extends Type
The Annotation Type interface is designed to hold information about annotation for any type that could be annotated in Java.
For sake of simplicity the Annotation Type is not designed to model exact behaviour of annotation mechanism, but just to hold information needed to model annotation over java Type definition.
  • Method Details

    • getAnnotations

      List<AnnotationType> getAnnotations()
      Returns the List of Annotations. Each Annotation Type MAY have defined multiple Annotations.
      Returns:
      the List of Annotations.
    • getParameter

      AnnotationType.Parameter getParameter(String paramName)
      Returns Parameter Definition assigned for given parameter name. If Annotation does not contain parameter with specified param name, the method MAY return null value.
      Parameters:
      paramName - Parameter Name
      Returns:
      Parameter Definition assigned for given parameter name.
    • getParameters

      List<AnnotationType.Parameter> getParameters()
      Returns List of all parameters assigned to Annotation Type.
      Returns:
      List of all parameters assigned to Annotation Type.
    • getParameterNames

      List<String> getParameterNames()
      Returns List of parameter names.
      Returns:
      List of parameter names.
    • containsParameters

      boolean containsParameters()
      Returns true if annotation contains parameters.
      Returns:
      true if annotation contains parameters.