public static class ObjectGraphBuilder.DefaultRelationNameResolver extends java.lang.Object implements ObjectGraphBuilder.RelationNameResolver
| Constructor and Description |
|---|
ObjectGraphBuilder.DefaultRelationNameResolver() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
resolveChildRelationName(java.lang.String parentName,
java.lang.Object parent,
java.lang.String childName,
java.lang.Object child)
Follow the most conventional plural in English, add 's' to childName.
If the property does not exist then it will return childName unchanged. |
java.lang.String |
resolveParentRelationName(java.lang.String parentName,
java.lang.Object parent,
java.lang.String childName,
java.lang.Object child)
Follow the most conventional pattern, returns the parentName
unchanged.
|
public ObjectGraphBuilder.DefaultRelationNameResolver()
public java.lang.String resolveChildRelationName(java.lang.String parentName,
java.lang.Object parent,
java.lang.String childName,
java.lang.Object child)
resolveChildRelationName in interface ObjectGraphBuilder.RelationNameResolverparentName - the name of the parent nodeparent - the parent nodechildName - the name of the child nodechild - the child nodepublic java.lang.String resolveParentRelationName(java.lang.String parentName,
java.lang.Object parent,
java.lang.String childName,
java.lang.Object child)
resolveParentRelationName in interface ObjectGraphBuilder.RelationNameResolverparentName - the name of the parent nodeparent - the parent nodechildName - the name of the child nodechild - the child node