Comparable<PropertyModel>, JsonBindingModelpublic class PropertyModel extends Object implements JsonBindingModel, Comparable<PropertyModel>
| Constructor | Description |
|---|---|
PropertyModel(ClassModel classModel,
Property property,
JsonbContext jsonbContext) |
Creates an instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(PropertyModel o) |
|
boolean |
equals(Object o) |
|
ClassModel |
getClassModel() |
Model of declaring class of this property.
|
JsonContext |
getContext() |
Current context of json generator.
|
PropertyCustomization |
getCustomization() |
Introspected customization of a property.
|
PropertyValuePropagation |
getPropagation() |
Wrapper object of
java.lang.reflect representations of this javabean property. |
String |
getPropertyName() |
Default property name according to Field / Getter / Setter method names.
|
javax.json.bind.serializer.JsonbSerializer<?> |
getPropertySerializer() |
Gets serializer.
|
Type |
getPropertyType() |
Runtime type of a property.
|
String |
getReadName() |
Gets a name of JSON document property to read this property from.
|
Type |
getType() |
Class of a property, either bean property type or collection / array component type.
|
Object |
getValue(Object object) |
Read a property.
|
String |
getWriteName() |
Returns a name of json key that will be written by marshaller.
|
int |
hashCode() |
|
boolean |
isReadable() |
Property is readable.
|
boolean |
isWritable() |
Property is writable.
|
void |
setValue(Object object,
Object value) |
Sets a property.
|
public PropertyModel(ClassModel classModel, Property property, JsonbContext jsonbContext)
classModel - Class model of declaring class.property - Property.jsonbContext - Context.public Object getValue(Object object)
object - object to read property from.public void setValue(Object object, Object value)
object - Object to set value in.value - Value to set.public boolean isReadable()
public boolean isWritable()
public String getPropertyName()
public Type getPropertyType()
public ClassModel getClassModel()
public PropertyCustomization getCustomization()
getCustomization in interface JsonBindingModelpublic Type getType()
getType in interface JsonBindingModelpublic int compareTo(PropertyModel o)
compareTo in interface Comparable<PropertyModel>public JsonContext getContext()
JsonBindingModelgetContext in interface JsonBindingModelpublic String getReadName()
public String getWriteName()
JsonBindingModelgetWriteName in interface JsonBindingModelpublic javax.json.bind.serializer.JsonbSerializer<?> getPropertySerializer()
public PropertyValuePropagation getPropagation()
java.lang.reflect representations of this javabean property.Copyright © 2017 Oracle Corporation. All rights reserved.