Class ExampleObjectIO<V,A extends V,O extends V,AB,OB>

java.lang.Object
io.smallrye.openapi.runtime.io.ModelIO<T,V,A,O,AB,OB>
io.smallrye.openapi.runtime.io.MapModelIO<org.eclipse.microprofile.openapi.models.examples.Example,V,A,O,AB,OB>
io.smallrye.openapi.runtime.io.media.ExampleObjectIO<V,A,O,AB,OB>
All Implemented Interfaces:
ReferenceIO<V,A,O,AB,OB>

public class ExampleObjectIO<V,A extends V,O extends V,AB,OB> extends MapModelIO<org.eclipse.microprofile.openapi.models.examples.Example,V,A,O,AB,OB> implements ReferenceIO<V,A,O,AB,OB>
  • Constructor Details

  • Method Details

    • read

      public org.eclipse.microprofile.openapi.models.examples.Example read(org.jboss.jandex.AnnotationInstance annotation)
      Specified by:
      read in class ModelIO<org.eclipse.microprofile.openapi.models.examples.Example,V,A extends V,O extends V,AB,OB>
    • readObject

      public org.eclipse.microprofile.openapi.models.examples.Example readObject(O node)
      Specified by:
      readObject in class ModelIO<org.eclipse.microprofile.openapi.models.examples.Example,V,A extends V,O extends V,AB,OB>
    • write

      public Optional<O> write(org.eclipse.microprofile.openapi.models.examples.Example model)
      Specified by:
      write in class ModelIO<org.eclipse.microprofile.openapi.models.examples.Example,V,A extends V,O extends V,AB,OB>
    • parseValue

      public Object parseValue(String value)
      Reads an example value and decode it, the parsing is delegated to the extensions currently set in the scanner. The default value will parse the string using Jackson.
      Parameters:
      value - the value to decode
      Returns:
      a Java representation of the 'value' property, either a String or parsed value