Class MatrixTransformer
- java.lang.Object
-
- io.vertx.openapi.validation.transformer.ParameterTransformer
-
- io.vertx.openapi.validation.transformer.MatrixTransformer
-
public class MatrixTransformer extends ParameterTransformer
+--------+---------+--------+-------------+-------------------------------------+--------------------------+ | style | explode | empty | string | array | object | +--------+---------+--------+-------------+-------------------------------------+--------------------------+ | matrix | false | ;color | ;color=blue | ;color=blue,black,brown | ;color=R,100,G,200,B,150 | +--------+---------+--------+-------------+-------------------------------------+--------------------------+ | matrix | true | ;color | ;color=blue | ;color=blue;color=black;color=brown | ;R=100;G=200;B=150 | +--------+---------+--------+-------------+-------------------------------------+--------------------------+
-
-
Constructor Summary
Constructors Constructor Description MatrixTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbuildPrefix(Parameter parameter)protected String[]getArrayValues(Parameter parameter, String rawValue)protected String[]getObjectKeysAndValues(Parameter parameter, String rawValue)Objecttransform(Parameter parameter, String rawValue)Transforms the raw value from itsStringrepresentation into JSON.-
Methods inherited from class io.vertx.openapi.validation.transformer.ParameterTransformer
transformArray, transformObject, transformPrimitive
-
-
-
-
Method Detail
-
transform
public Object transform(Parameter parameter, String rawValue)
Description copied from class:ParameterTransformerTransforms the raw value from itsStringrepresentation into JSON. This method does not only decode aString, it also takes the differentstylesinto account}.- Overrides:
transformin classParameterTransformer- Parameters:
parameter- The parameter modelrawValue- The parameter value- Returns:
- An
Objectholding the transformed value.
-
getArrayValues
protected String[] getArrayValues(Parameter parameter, String rawValue)
- Specified by:
getArrayValuesin classParameterTransformer
-
getObjectKeysAndValues
protected String[] getObjectKeysAndValues(Parameter parameter, String rawValue)
- Specified by:
getObjectKeysAndValuesin classParameterTransformer
-
-