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>
-
Field Summary
Fields inherited from class io.smallrye.openapi.runtime.io.ModelIO
annotationName, modelNameFields inherited from interface io.smallrye.openapi.runtime.io.ReferenceIO
REF -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseValue(String value) Reads an example value and decode it, the parsing is delegated to the extensions currently set in the scanner.org.eclipse.microprofile.openapi.models.examples.Exampleread(org.jboss.jandex.AnnotationInstance annotation) org.eclipse.microprofile.openapi.models.examples.ExamplereadObject(O node) write(org.eclipse.microprofile.openapi.models.examples.Example model) Methods inherited from class io.smallrye.openapi.runtime.io.MapModelIO
read, readMap, readMap, readMap, readMap, readMap, readMap, readMap, readMap, readMap, readMap, readObjectMap, writeMethods inherited from class io.smallrye.openapi.runtime.io.ModelIO
entry, enumValue, enumValue, getAnnotation, getName, getName, getRepeatableAnnotations, hasRepeatableAnnotation, ioContext, jsonIO, not, optionalJsonArray, optionalJsonObject, read, read, readValue, scannerContext, setAllIfPresent, setIfPresent, toLinkedMap, value, valueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.smallrye.openapi.runtime.io.ReferenceIO
isReference, isReference, isReference, isReference, isReference, jsonIO, readReference, setReference
-
Constructor Details
-
ExampleObjectIO
-
-
Method Details
-
read
public org.eclipse.microprofile.openapi.models.examples.Example read(org.jboss.jandex.AnnotationInstance annotation) -
readObject
-
write
-
parseValue
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
-