@Beta
public interface NamingStrategy
Modifier and Type | Method and Description |
---|---|
String |
generateJavaBuilderMethodName(String name)
Called by the VDM generator to convert the name and the label of an OData navigation property into a Lombok
builder method name.
|
String |
generateJavaClassName(String name,
String label)
Called by the VDM generator to convert the name and the label of an OData entity type into a suitable Java class
name.
|
String |
generateJavaConstantName(String name,
String label)
Called by the VDM generator to convert the property name and the label of an OData entity type into a suitable
Java constant (
public static final ) name. |
String |
generateJavaFieldName(String name,
String label)
Called by the VDM generator to convert the name and the label of a property within an OData entity type into a
suitable Java member variable name.
|
String |
generateJavaFluentHelperClassName(String name,
String label)
Called by the VDM generator to convert the name and the label of an OData operation (e.g.
|
String |
generateJavaMethodName(String name)
Called by the VDM generator to convert the name and the label of an OData navigation property into a partial Java
method name.
|
String |
generateJavaMethodParameterName(String name,
String label)
Called by the VDM generator to convert the name and the label of an OData operation (e.g.
|
String |
generateJavaNavigationPropertyConstantName(String name)
Called by the VDM generator to convert the name and the label of an OData navigation property into a suitable
Java constant (
public static final ) name. |
String |
generateJavaNavigationPropertyFieldName(String name)
Called by the VDM generator to convert the name and the label of an OData navigation property into a suitable
Java member variable name.
|
String |
generateJavaOperationMethodName(String name,
String label)
Called by the VDM generator to convert the name and the label of an OData operation (e.g.
|
NameSource |
getNameSource()
Returns the
NameSource used by this NamingStrategy . |
boolean |
isReservedKeyword(String name)
Determines whether the
proposedName is a language reserved keyword. |
void |
setNameSource(NameSource nameSource)
Sets the
NameSource that should be used by this NamingStrategy . |
@Nonnull NameSource getNameSource()
NameSource
used by this NamingStrategy
.NameSource
.void setNameSource(@Nonnull NameSource nameSource)
NameSource
that should be used by this NamingStrategy
.nameSource
- The NameSource
to use.boolean isReservedKeyword(@Nonnull String name)
proposedName
is a language reserved keyword.name
- String to checktrue
if proposedName
is a reserved keyword, false
otherwise.@Nonnull String generateJavaClassName(@Nonnull String name, @Nullable String label)
...FluentHelper
and ...ByKeyFluentHelper
)...CreateFluentHelper
, ...UpdateFluentHelper
,
...DeleteFluentHelper
)name
- Provided by the VDM generator. It reads the Name attribute value of an EntityType tag in
the metadata file.label
- Provided by the VDM generator. I reads the sap:label attribute of an EntityType tag in
the metadata file.@Nonnull String generateJavaFieldName(@Nonnull String name, @Nullable String label)
name
- Provided by the VDM generator. In the metadata file, it reads the Name attribute value of a
Property tag, which is within an EntityType tag.label
- Provided by the VDM generator. In the metadata file, it reads the sap:label attribute value of
a Property tag, which is within an EntityType tag.@Nonnull String generateJavaConstantName(@Nonnull String name, @Nullable String label)
public static final
) name. These constants are the fluent helper fields and they end up in
the newly generated VDM entity classes.name
- Provided by the VDM generator. In the metadata file, it reads the Name attribute value of a
Property tag, which is within an EntityType tag.label
- Provided by the VDM generator. In the metadata file, it reads the sap:label attribute value of
a Property tag, which is within an EntityType tag.@Nonnull String generateJavaNavigationPropertyFieldName(@Nonnull String name)
name
- Provided by the VDM generator. In the metadata file, it reads the Name attribute value of a
NavigationProperty tag, which is within an EntityType tag.@Nonnull String generateJavaNavigationPropertyConstantName(@Nonnull String name)
public static final
) name. These constants are the fluent helper fields and they end up in
the newly generated VDM entity classes.name
- Provided by the VDM generator. In the metadata file, it reads the Name attribute value of a
NavigationProperty tag, which is within an EntityType tag.@Nonnull String generateJavaMethodName(@Nonnull String name)
fetch...()
, get...OrNull()
, get...OrFetch()
set...()
, add...()
name
- Provided by the VDM generator. In the metadata file, it reads the Name attribute value of a
NavigationProperty tag, which is within an EntityType tag.@Nonnull String generateJavaBuilderMethodName(@Nonnull String name)
name
- Provided by the VDM generator. In the metadata file, it reads the Name attribute value of a
NavigationProperty tag, which is within an EntityType tag.@Nonnull String generateJavaOperationMethodName(@Nonnull String name, @Nullable String label)
name
- Provided by the VDM generator. In the metadata file, it reads the Name attribute value of an
operation (e.g. FunctionImport inside the EntityContainer tag).label
- Provided by the VDM generator. In the metadata file, it reads the sap:label attribute value of
an operation (e.g. FunctionImport inside the EntityContainer tag).@Nonnull String generateJavaMethodParameterName(@Nonnull String name, @Nullable String label)
name
- Provided by the VDM generator. In the metadata file, it reads the Name attribute value of a
Parameter tag, which is within the operation tag (e.g. FunctionImport inside the
EntityContainer tag).label
- Provided by the VDM generator. In the metadata file, it reads the sap:label attribute value of
a Parameter tag, which is within the operation tag (e.g. FunctionImport inside the
EntityContainer tag).@Nonnull String generateJavaFluentHelperClassName(@Nonnull String name, @Nullable String label)
name
- Provided by the VDM generator. In the metadata file, it reads the Name attribute value of an
operation (e.g. FunctionImport inside the EntityContainer tag).label
- Provided by the VDM generator. In the metadata file, it reads the sap:label attribute value of
an operation (e.g. FunctionImport inside the EntityContainer tag).Copyright © 2021 SAP SE. All rights reserved.