[Java] Interface ObjectGraphBuilder.ChildPropertySetter
public interface ObjectGraphBuilder.ChildPropertySetter
Strategy for setting a child node on its parent.
Useful for handling Lists/Arrays vs normal properties.
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public void |
setChild(Object parent, Object child, String parentName, String propertyName)
|
Method Detail
public void setChild(Object parent, Object child, String parentName, String propertyName)
- Parameters:
-
parent
- the parent's node value -
child
- the child's node value -
parentName
- the name of the parent node -
propertyName
- the resolved relation name of the child
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/util/ObjectGraphBuilder.ChildPropertySetter.html