Package io.smallrye.openapi.runtime.io
Interface JsonIO<V,A extends V,O extends V,AB,OB>
public interface JsonIO<V,A extends V,O extends V,AB,OB>
-
Method Summary
Modifier and TypeMethodDescriptionvoidbuildArray(AB array) buildObject(OB object) default VfromReader(Reader reader) fromReader(Reader reader, Format format) default VfromStream(InputStream stream, Format format) default VfromString(String value, Format format) default BigDecimalgetBigDecimal(V object, String key) default BooleangetBoolean(V object, String key) default IntegergetJsonBigDecimal(O object, String key) getJsonBoolean(O object, String key) getJsonInt(O object, String key) getJsonString(O object, String key) default Stringbooleanbooleanbooleanbooleanstatic <V,A extends V, O extends V, AB, OB>
JsonIO<V,A, O, AB, OB> newInstance(OpenApiConfig config) default ObjectparseValue(String value) properties(O object) voidvoid
-
Method Details
-
newInstance
-
parseValue
-
isArray
-
asArray
-
entries
-
isObject
-
asObject
-
hasKey
-
properties
-
isString
-
asString
-
getString
-
getInt
-
getBoolean
-
getBigDecimal
-
getJsonInt
-
getJsonString
-
getJsonBoolean
-
getJsonBigDecimal
-
getValue
-
getArray
-
getArray
-
getObject
-
toJson
-
fromJson
-
toJson
-
fromString
-
fromStream
-
fromReader
- Throws:
IOException
-
fromReader
- Throws:
IOException
-
toString
-
createArray
AB createArray() -
add
-
buildArray
-
createObject
OB createObject() -
set
-
setAll
-
buildObject
-