Class ReflectionPropagation
java.lang.Object
org.eclipse.yasson.internal.model.PropertyValuePropagation
org.eclipse.yasson.internal.model.ReflectionPropagation
Property value propagation by reflection.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.yasson.internal.model.PropertyValuePropagation
PropertyValuePropagation.OperationMode -
Constructor Summary
ConstructorsConstructorDescriptionReflectionPropagation(Property property, javax.json.bind.config.PropertyVisibilityStrategy strategy) Creates new instance of reflection propagation. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidacceptField(Field field, PropertyValuePropagation.OperationMode mode) Accept aFieldto use for value propagation.protected voidacceptMethod(Method method, PropertyValuePropagation.OperationMode mode) Accept aMethodto use value propagation.Methods inherited from class org.eclipse.yasson.internal.model.PropertyValuePropagation
getField, getGetter, getSetter, isGetterVisible, isReadable, isSetterVisible, isWritable
-
Constructor Details
-
ReflectionPropagation
public ReflectionPropagation(Property property, javax.json.bind.config.PropertyVisibilityStrategy strategy) Creates new instance of reflection propagation.- Parameters:
property- target propertystrategy- visibility strategy
-
-
Method Details
-
acceptMethod
Accept aMethodto use value propagation.- Specified by:
acceptMethodin classPropertyValuePropagation- Parameters:
method- methodmode- read or write
-
acceptField
Accept aFieldto use for value propagation.- Specified by:
acceptFieldin classPropertyValuePropagation- Parameters:
field- fieldmode- mod
-