public interface NamingStrategy
Modifier and Type | Method and Description |
---|---|
String |
getBeanStyleGetterMethodName(String memberName,
Shape parentShape,
Shape c2jShape) |
String |
getBeanStyleSetterMethodName(String memberName,
Shape parentShape,
Shape c2jShape) |
String |
getClientPackageName(String serviceName)
Retrieve the client package name that should be used based on the service name.
|
String |
getEnumValueName(String enumValue) |
String |
getExceptionName(String errorShapeName) |
String |
getExistenceCheckMethodName(String memberName,
Shape parentShape)
Names a method that would check for existence of the member in the response.
|
String |
getFluentEnumGetterMethodName(String memberName,
Shape parentShape,
Shape shape) |
String |
getFluentEnumSetterMethodName(String memberName,
Shape parentShape,
Shape shape) |
String |
getFluentGetterMethodName(String memberName,
Shape parentShape,
Shape shape) |
String |
getFluentSetterMethodName(String memberName,
Shape parentShape,
Shape shape) |
String |
getModelPackageName(String serviceName)
Retrieve the model package name that should be used based on the service name.
|
String |
getPaginatorsPackageName(String serviceName)
Retrieve the paginators package name that should be used based on the service name.
|
String |
getRequestClassName(String operationName) |
String |
getRequestTransformPackageName(String serviceName)
Retrieve the request transform package name that should be used based on the service name.
|
String |
getResponseClassName(String operationName) |
String |
getSdkFieldFieldName(MemberModel memberModel)
Stuttering is intentional, returns the name of the
SdkField field. |
String |
getServiceName()
Retrieve the service name that should be used based on the model.
|
String |
getShapeClassName(String shapeName) |
String |
getSmokeTestPackageName(String serviceName)
Retrieve the smote test package name that should be used based on the service name.
|
String |
getTransformPackageName(String serviceName)
Retrieve the transform package name that should be used based on the service name.
|
String |
getUnionEnumTypeName(MemberModel memberModel)
Returns the name of the provided member as if it will be included in an enum (as in, when the parent shape is a union
and we need to create an enum with each member name in it).
|
String |
getVariableName(String name) |
String |
getWaitersPackageName(String serviceName)
Retrieve the waiters package name that should be used based on the service name.
|
void |
validateCustomerVisibleNaming(IntermediateModel trimmedModel)
Verify the customer-visible naming in the provided intermediate model will compile and is idiomatic to Java.
|
String getServiceName()
String getClientPackageName(String serviceName)
String getModelPackageName(String serviceName)
String getTransformPackageName(String serviceName)
String getRequestTransformPackageName(String serviceName)
String getPaginatorsPackageName(String serviceName)
String getWaitersPackageName(String serviceName)
String getSmokeTestPackageName(String serviceName)
String getExceptionName(String errorShapeName)
errorShapeName
- Name of error shape to derive exception class name from.String getRequestClassName(String operationName)
operationName
- Name of operation used to derive request class name.String getResponseClassName(String operationName)
operationName
- Name of operation used to derive response class name.String getVariableName(String name)
name
- Some contextual name to derive variable name from (i.e. member name, java class name, etc).String getEnumValueName(String enumValue)
enumValue
- Enum value as defined in the service model used to derive the java name.String getShapeClassName(String shapeName)
shapeName
- Name of structure used to derive Java class name.String getFluentGetterMethodName(String memberName, Shape parentShape, Shape shape)
memberName
- Member name to name getter for.shape
- The shape associated with the member.String getFluentEnumGetterMethodName(String memberName, Shape parentShape, Shape shape)
memberName
- The full member to get the name for.shape
- The shape associated with the member.String getBeanStyleGetterMethodName(String memberName, Shape parentShape, Shape c2jShape)
memberName
- Member name to name getter for.String getBeanStyleSetterMethodName(String memberName, Shape parentShape, Shape c2jShape)
memberName
- Member name to name setter for.String getFluentSetterMethodName(String memberName, Shape parentShape, Shape shape)
memberName
- Member name to name fluent setter for.String getFluentEnumSetterMethodName(String memberName, Shape parentShape, Shape shape)
memberName
- The full member to get the name for.shape
- The shape associated with the member.String getSdkFieldFieldName(MemberModel memberModel)
SdkField
field.memberModel
- Member to generate field name for.SdkField
pojo.String getUnionEnumTypeName(MemberModel memberModel)
memberModel
- Member to generate the union enum type name for.String getExistenceCheckMethodName(String memberName, Shape parentShape)
memberName
- The member name to get the method name for.parentShape
- The shape containing the member.void validateCustomerVisibleNaming(IntermediateModel trimmedModel)
Copyright © 2022. All rights reserved.