[Java] Interface ObjectGraphBuilder.RelationNameResolver
public interface ObjectGraphBuilder.RelationNameResolver
Strategy for resolving a relationship property name.
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public String |
resolveChildRelationName(String parentName, Object parent, String childName, Object child) Returns the mapping name of child -> parent | |
public String |
resolveParentRelationName(String parentName, Object parent, String childName, Object child) Returns the mapping name of parent -> child |
Method Detail
public String resolveChildRelationName(String parentName, Object parent, String childName, Object child)
Returns the mapping name of child -> parent
- Parameters:
-
parentName
- the name of the parent node -
parent
- the parent node -
childName
- the name of the child node -
child
- the child node
public String resolveParentRelationName(String parentName, Object parent, String childName, Object child)
Returns the mapping name of parent -> child
- Parameters:
-
parentName
- the name of the parent node -
parent
- the parent node -
childName
- the name of the child node -
child
- the child node
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/util/ObjectGraphBuilder.RelationNameResolver.html