public class DefaultNamingStrategy extends Object implements NamingStrategy
Constructor and Description |
---|
DefaultNamingStrategy(ServiceModel serviceModel,
CustomizationConfig customizationConfig) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthorizerClassName(String shapeName) |
String |
getBeanStyleGetterMethodName(String memberName) |
String |
getBeanStyleSetterMethodName(String memberName) |
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 |
getFluentEnumGetterMethodName(String memberName,
Shape shape) |
String |
getFluentEnumSetterMethodName(String memberName,
Shape shape) |
String |
getFluentGetterMethodName(String memberName,
Shape shape) |
String |
getFluentSetterMethodName(String memberName,
Shape shape) |
String |
getJavaClassName(String shapeName) |
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 |
getServiceName()
Retrieve the service name that should be used based on the model.
|
String |
getSetterMethodName(String memberName) |
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 |
getVariableName(String name) |
public DefaultNamingStrategy(ServiceModel serviceModel, CustomizationConfig customizationConfig)
public String getServiceName()
NamingStrategy
getServiceName
in interface NamingStrategy
public String getClientPackageName(String serviceName)
NamingStrategy
getClientPackageName
in interface NamingStrategy
public String getModelPackageName(String serviceName)
NamingStrategy
getModelPackageName
in interface NamingStrategy
public String getTransformPackageName(String serviceName)
NamingStrategy
getTransformPackageName
in interface NamingStrategy
public String getRequestTransformPackageName(String serviceName)
NamingStrategy
getRequestTransformPackageName
in interface NamingStrategy
public String getPaginatorsPackageName(String serviceName)
NamingStrategy
getPaginatorsPackageName
in interface NamingStrategy
public String getSmokeTestPackageName(String serviceName)
NamingStrategy
getSmokeTestPackageName
in interface NamingStrategy
public String getExceptionName(String errorShapeName)
getExceptionName
in interface NamingStrategy
errorShapeName
- Name of error shape to derive exception class name from.public String getRequestClassName(String operationName)
getRequestClassName
in interface NamingStrategy
operationName
- Name of operation used to derive request class name.public String getResponseClassName(String operationName)
getResponseClassName
in interface NamingStrategy
operationName
- Name of operation used to derive response class name.public String getVariableName(String name)
getVariableName
in interface NamingStrategy
name
- Some contextual name to derive variable name from (i.e. member name, java class name, etc).public String getEnumValueName(String enumValue)
getEnumValueName
in interface NamingStrategy
enumValue
- Enum value as defined in the service model used to derive the java name.public String getJavaClassName(String shapeName)
getJavaClassName
in interface NamingStrategy
shapeName
- Name of structure used to derive Java class name.public String getAuthorizerClassName(String shapeName)
getAuthorizerClassName
in interface NamingStrategy
shapeName
- Name of an authorizer shape used to derive the authorizer namepublic String getFluentGetterMethodName(String memberName, Shape shape)
getFluentGetterMethodName
in interface NamingStrategy
memberName
- Member name to name getter for.shape
- The shape associated with the member.public String getFluentEnumGetterMethodName(String memberName, Shape shape)
getFluentEnumGetterMethodName
in interface NamingStrategy
memberName
- The full member to get the name for.shape
- The shape associated with the member.public String getBeanStyleGetterMethodName(String memberName)
getBeanStyleGetterMethodName
in interface NamingStrategy
memberName
- Member name to name getter for.public String getSetterMethodName(String memberName)
getSetterMethodName
in interface NamingStrategy
memberName
- Member name to name setter for.public String getBeanStyleSetterMethodName(String memberName)
getBeanStyleSetterMethodName
in interface NamingStrategy
memberName
- Member name to name setter for.public String getFluentSetterMethodName(String memberName, Shape shape)
getFluentSetterMethodName
in interface NamingStrategy
memberName
- Member name to name fluent setter for.public String getFluentEnumSetterMethodName(String memberName, Shape shape)
getFluentEnumSetterMethodName
in interface NamingStrategy
memberName
- The full member to get the name for.shape
- The shape associated with the member.Copyright © 2018. All rights reserved.