Class LicenseReader


  • public class LicenseReader
    extends Object
    This reads the License from annotations or json
    Author:
    Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
    See Also:
    licenseObject
    • Method Detail

      • readLicense

        public static org.eclipse.microprofile.openapi.models.info.License readLicense​(AnnotationScannerContext context,
                                                                                       org.jboss.jandex.AnnotationValue annotationValue)
        Reads an License annotation.
        Parameters:
        annotationValue - the @License annotation
        Returns:
        License model
      • readLicense

        public static org.eclipse.microprofile.openapi.models.info.License readLicense​(com.fasterxml.jackson.databind.JsonNode node)
        Reads an License OpenAPI node.
        Parameters:
        node - the json node
        Returns:
        License model