Class BooleanConverter
- java.lang.Object
-
- io.openapiprocessor.jsonschema.converter.BooleanConverter
-
- All Implemented Interfaces:
PropertyConverter<java.lang.Boolean>
public class BooleanConverter extends java.lang.Object implements PropertyConverter<java.lang.Boolean>
converts the propertyvaluetoBoolean.
-
-
Constructor Summary
Constructors Constructor Description BooleanConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.Booleanconvert(java.lang.String name, @Nullable java.lang.Object value, java.lang.String location)converts thevalueof a property to aTobject or null.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.openapiprocessor.jsonschema.converter.PropertyConverter
convert
-
-
-
-
Method Detail
-
convert
public @Nullable java.lang.Boolean convert(java.lang.String name, @Nullable java.lang.Object value, java.lang.String location)Description copied from interface:PropertyConverterconverts thevalueof a property to aTobject or null. May throw if conversion fails, e.g. if the property is required but null.- Specified by:
convertin interfacePropertyConverter<java.lang.Boolean>- Parameters:
name- property namevalue- property valuelocation- property location, json pointer- Returns:
- T converted value
-
-