@Beta
public interface NamingStrategy
Modifier and Type | Method and Description |
---|---|
String |
getNameFromEntity(String entityName,
String entityLabel)
Converts the given name and label of an edm entity into a java name.
|
String |
getNameFromProperty(String propertyName,
String propertyLabel)
Converts the given name and label of an edm property into a java name.
|
@Nonnull String getNameFromEntity(String entityName, String entityLabel)
This method can be used to remove unwanted pre-/suffixes or map the name completely new.
The actual creation of java-style names (class, variable, constants etc.) is done later, based on the name returned by this method.
For best results, the name returned should be given in CamelCase.
entityName
- The entity name, taken from the metadata file.entityLabel
- The entity label, taken from the metadata file.@Nonnull String getNameFromProperty(String propertyName, String propertyLabel)
This method can be used to remove unwanted pre-/suffixes or map the name completely new.
The actual creation of java-style names (class, variable, constants etc.) is done later, based on the name returned by this method.
For best results, the name returned should be given in CamelCase.
propertyName
- The property name, taken from the metadata files.propertyLabel
- The property label, taken from the metadata file.Copyright © 2020 SAP SE. All rights reserved.