Interface PropertyConverter<T>
-
- Type Parameters:
T- target type.
- All Known Implementing Classes:
BooleanConverter,BucketConverter,IntegerConverter,JsonSchemaConverter,JsonSchemaRefConverter,JsonSchemasConverter,MapDependencyConverter,MapJsonSchemasConverter,MapSetStringsOrEmptyConverter,NumberConverter,StringNotNullConverter,StringNullableConverter,UriConverter,VocabularyConverter
public interface PropertyConverter<T>convertObjectvalue toT.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @Nullable Tconvert(java.lang.String name, @Nullable java.lang.Object value, JsonPointer location)@Nullable Tconvert(java.lang.String name, @Nullable java.lang.Object value, java.lang.String location)converts thevalueof a property to aTobject or null.
-
-
-
Method Detail
-
convert
@Nullable T convert(java.lang.String name, @Nullable java.lang.Object value, java.lang.String location)
converts thevalueof a property to aTobject or null. May throw if conversion fails, e.g. if the property is required but null.- Parameters:
name- property namevalue- property valuelocation- property location, json pointer- Returns:
- T converted value
-
convert
default @Nullable T convert(java.lang.String name, @Nullable java.lang.Object value, JsonPointer location)
-
-