Package groovy.util
Class ObjectGraphBuilder.DefaultChildPropertySetter
- java.lang.Object
-
- groovy.util.ObjectGraphBuilder.DefaultChildPropertySetter
-
- All Implemented Interfaces:
ObjectGraphBuilder.ChildPropertySetter
- Enclosing class:
- ObjectGraphBuilder
public static class ObjectGraphBuilder.DefaultChildPropertySetter extends java.lang.Object implements ObjectGraphBuilder.ChildPropertySetter
Default impl that calls parent.propertyName = child
If parent.propertyName is a Collection it will try to add child to the collection.
-
-
Constructor Summary
Constructors Constructor Description DefaultChildPropertySetter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetChild(java.lang.Object parent, java.lang.Object child, java.lang.String parentName, java.lang.String propertyName)
-
-
-
Method Detail
-
setChild
public void setChild(java.lang.Object parent, java.lang.Object child, java.lang.String parentName, java.lang.String propertyName)- Specified by:
setChildin interfaceObjectGraphBuilder.ChildPropertySetter- Parameters:
parent- the parent's node valuechild- the child's node valueparentName- the name of the parent nodepropertyName- the resolved relation name of the child
-
-