Package groovy.util
Class ObjectGraphBuilder.DefaultIdentifierResolver
java.lang.Object
groovy.util.ObjectGraphBuilder.DefaultIdentifierResolver
- All Implemented Interfaces:
ObjectGraphBuilder.IdentifierResolver
- Enclosing class:
- ObjectGraphBuilder
public static class ObjectGraphBuilder.DefaultIdentifierResolver
extends Object
implements ObjectGraphBuilder.IdentifierResolver
Default impl, always returns 'id'
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetIdentifierFor
(String nodeName) Returns the name of the property that will identify the node.
-
Constructor Details
-
DefaultIdentifierResolver
public DefaultIdentifierResolver()
-
-
Method Details
-
getIdentifierFor
Description copied from interface:ObjectGraphBuilder.IdentifierResolver
Returns the name of the property that will identify the node.- Specified by:
getIdentifierFor
in interfaceObjectGraphBuilder.IdentifierResolver
- Parameters:
nodeName
- the name of the node
-