Class PolymorphicConfig
- java.lang.Object
-
- org.apache.johnzon.jsonb.api.experimental.PolymorphicConfig
-
public class PolymorphicConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private Predicate<Class<?>>
deserializationPredicate
private String
discriminator
private Function<Class<?>,String>
discriminatorMapper
private Predicate<Class<?>>
serializationPredicate
private Function<String,Class<?>>
typeLoader
-
Constructor Summary
Constructors Constructor Description PolymorphicConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicate<Class<?>>
getDeserializationPredicate()
String
getDiscriminator()
Function<Class<?>,String>
getDiscriminatorMapper()
Predicate<Class<?>>
getSerializationPredicate()
Function<String,Class<?>>
getTypeLoader()
PolymorphicConfig
withDeserializationPredicate(Predicate<Class<?>> deserializationPredicate)
PolymorphicConfig
withDiscriminator(String value)
PolymorphicConfig
withDiscriminatorMapper(Function<Class<?>,String> discriminatorMapper)
PolymorphicConfig
withSerializationPredicate(Predicate<Class<?>> serializationPredicate)
PolymorphicConfig
withTypeLoader(Function<String,Class<?>> typeLoader)
-
-
-
Field Detail
-
discriminator
private String discriminator
-
-
Method Detail
-
withDeserializationPredicate
public PolymorphicConfig withDeserializationPredicate(Predicate<Class<?>> deserializationPredicate)
-
withSerializationPredicate
public PolymorphicConfig withSerializationPredicate(Predicate<Class<?>> serializationPredicate)
-
withDiscriminatorMapper
public PolymorphicConfig withDiscriminatorMapper(Function<Class<?>,String> discriminatorMapper)
-
withTypeLoader
public PolymorphicConfig withTypeLoader(Function<String,Class<?>> typeLoader)
-
withDiscriminator
public PolymorphicConfig withDiscriminator(String value)
-
getDiscriminator
public String getDiscriminator()
-
-