Class ParameterTransformer
- java.lang.Object
-
- io.vertx.openapi.validation.transformer.ParameterTransformer
-
- Direct Known Subclasses:
FormTransformer
,LabelTransformer
,MatrixTransformer
,SimpleTransformer
public abstract class ParameterTransformer extends Object
-
-
Constructor Summary
Constructors Constructor Description ParameterTransformer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String[]
getArrayValues(Parameter parameter, String rawValue)
protected abstract String[]
getObjectKeysAndValues(Parameter parameter, String rawValue)
Object
transform(Parameter parameter, String rawValue)
Transforms the raw value from itsString
representation into JSON.Object
transformArray(Parameter parameter, String rawValue)
Liketransform(Parameter, String)
, but only for values considered to be an array.Object
transformObject(Parameter parameter, String rawValue)
Liketransform(Parameter, String)
, but only for values considered to be an object.Object
transformPrimitive(Parameter parameter, String rawValue)
Liketransform(Parameter, String)
, but only for values considered to be primitive.
-
-
-
Method Detail
-
transform
public Object transform(Parameter parameter, String rawValue)
Transforms the raw value from itsString
representation into JSON. This method does not only decode aString
, it also takes the differentstyles
into account}.- Parameters:
parameter
- The parameter modelrawValue
- The parameter value- Returns:
- An
Object
holding the transformed value.
-
transformPrimitive
public Object transformPrimitive(Parameter parameter, String rawValue)
Liketransform(Parameter, String)
, but only for values considered to be primitive.- Parameters:
parameter
- The parameter modelrawValue
- The parameter value- Returns:
- An
Object
holding the transformed value.
-
transformArray
public Object transformArray(Parameter parameter, String rawValue)
Liketransform(Parameter, String)
, but only for values considered to be an array.- Parameters:
parameter
- The parameter modelrawValue
- The parameter value- Returns:
- An
Object
holding the transformed value.
-
getObjectKeysAndValues
protected abstract String[] getObjectKeysAndValues(Parameter parameter, String rawValue)
-
transformObject
public Object transformObject(Parameter parameter, String rawValue)
Liketransform(Parameter, String)
, but only for values considered to be an object.- Parameters:
parameter
- The parameter modelrawValue
- The parameter value- Returns:
- An
Object
holding the transformed value.
-
-