JsonBindingModel
public class ContainerModel extends Object implements JsonBindingModel
List<MyPojo>
, it will contain MyPojo
value type and customization parsed
from annotations of MyPojo
class.Constructor | Description |
---|---|
ContainerModel(Type valueRuntimeType,
Customization customization) |
Minimal constructor.
|
ContainerModel(Type valueRuntimeType,
Customization customization,
JsonContext context) |
Construct model.
|
ContainerModel(Type valueRuntimeType,
Customization customization,
JsonContext context,
String writeName) |
Construct model.
|
Modifier and Type | Method | Description |
---|---|---|
JsonContext |
getContext() |
Current context of json generator.
|
Customization |
getCustomization() |
Introspected customization of a property or class.
|
Type |
getType() |
Class of a property, either bean property type or collection / array component type.
|
String |
getWriteName() |
Returns a name of JSON key that will be written by marshaller.
|
public ContainerModel(Type valueRuntimeType, Customization customization, JsonContext context, String writeName)
valueRuntimeType
- collection or map value typecustomization
- customization parsed from value typecontext
- Object context used for serializationwriteName
- write name used for serializationpublic ContainerModel(Type valueRuntimeType, Customization customization, JsonContext context)
valueRuntimeType
- collection or map value typecustomization
- customization parsed from value typecontext
- Object context used for serializationpublic ContainerModel(Type valueRuntimeType, Customization customization)
valueRuntimeType
- collection or map value typecustomization
- customization parsed from value typepublic Customization getCustomization()
getCustomization
in interface JsonBindingModel
public Type getType()
getType
in interface JsonBindingModel
public String getWriteName()
getWriteName
in interface JsonBindingModel
public JsonContext getContext()
getContext
in interface JsonBindingModel
Copyright © 2017 Oracle Corporation. All rights reserved.