public static class ObjectGraphBuilder.DefaultRelationNameResolver extends java.lang.Object implements ObjectGraphBuilder.RelationNameResolver
| Constructor and Description |
|---|
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)
Handles the common English regular plurals with the following rules.
|
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 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