ReflectionPropagation
public abstract class PropertyValuePropagation extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
PropertyValuePropagation.OperationMode |
Mode of property propagation get or set.
|
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
readable |
Property can be read (marshalled to json)
|
protected boolean |
writable |
Property can be written (unmarshalled from json)
|
Modifier | Constructor | Description |
---|---|---|
protected |
PropertyValuePropagation(Property property,
JsonbContext ctx) |
Construct a property propagation.
|
Modifier and Type | Method | Description |
---|---|---|
protected abstract void |
acceptField(Field field,
PropertyValuePropagation.OperationMode mode) |
Accept a
Field to use for value propagation. |
protected abstract void |
acceptMethod(Method method,
PropertyValuePropagation.OperationMode mode) |
Accept a
Method to use value propagation. |
static PropertyValuePropagation |
createInstance(Property property,
JsonbContext ctx) |
Create typed instance to use.
|
Field |
getField() |
Field of a javabean property.
|
Method |
getGetter() |
Setter of a javabean property.
|
Method |
getSetter() |
Getter of a javabean property.
|
boolean |
isReadable() |
Property is readable.
|
boolean |
isWritable() |
Property is writable.
|
protected boolean writable
protected boolean readable
protected PropertyValuePropagation(Property property, JsonbContext ctx)
property
- Provided property.ctx
- Context.public static PropertyValuePropagation createInstance(Property property, JsonbContext ctx)
property
- Property to create from.ctx
- Context.protected abstract void acceptMethod(Method method, PropertyValuePropagation.OperationMode mode)
Method
to use value propagation.method
- methodmode
- read or writeprotected abstract void acceptField(Field field, PropertyValuePropagation.OperationMode mode)
Field
to use for value propagation.field
- fieldmode
- modpublic boolean isWritable()
public boolean isReadable()
Copyright © 2017 Oracle Corporation. All rights reserved.