Class LabelTransformer
- java.lang.Object
-
- io.vertx.openapi.validation.transformer.ParameterTransformer
-
- io.vertx.openapi.validation.transformer.LabelTransformer
-
public class LabelTransformer extends ParameterTransformer
+--------+---------+--------+-------------+------------------------------+-------------------------------+ | style | explode | empty | string | array | object | +--------+---------+--------+-------------+------------------------------+-------------------------------+ | label | false | . | .blue | .blue,black,brown (RFC-6570) | .R,100,G,200,B,150 | +--------+---------+--------+-------------+------------------------------+-------------------------------+ | label | true | . | .blue | .blue.black.brown | .R=100.G=200.B=150 | +--------+---------+--------+-------------+------------------------------+-------------------------------+
-
-
Constructor Summary
Constructors Constructor Description LabelTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]
getArrayValues(Parameter parameter, String rawValue)
protected String[]
getObjectKeysAndValues(Parameter parameter, String rawValue)
Object
transform(Parameter parameter, String rawValue)
Transforms the raw value from itsString
representation 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:ParameterTransformer
Transforms the raw value from itsString
representation into JSON. This method does not only decode aString
, it also takes the differentstyles
into account}.- Overrides:
transform
in classParameterTransformer
- Parameters:
parameter
- The parameter modelrawValue
- The parameter value- Returns:
- An
Object
holding the transformed value.
-
getArrayValues
protected String[] getArrayValues(Parameter parameter, String rawValue)
- Specified by:
getArrayValues
in classParameterTransformer
-
getObjectKeysAndValues
protected String[] getObjectKeysAndValues(Parameter parameter, String rawValue)
- Specified by:
getObjectKeysAndValues
in classParameterTransformer
-
-