public abstract class SdkAbstractStaticTypeResolver extends JavaTemplateEntity
| Modifier and Type | Field and Description |
|---|---|
protected Class<?> |
superclass |
protected TypeDefinition |
typeDefinition |
connectorModel, NAME_MEMBER, outputDir, VALUE_MEMBER| Constructor and Description |
|---|
SdkAbstractStaticTypeResolver(Path outputDir,
ConnectorModel connectorModel,
SdkConnector sdkConnector,
ConnectorOperation operation,
TypeDefinition typeDefinition,
FileGenerationUtils.SchemaNameType schemaNameType,
String partName)
Creates a type resolver that will generate a schema file in the resources directory if needed.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyTemplates() |
protected abstract boolean |
buildRequiresTypeResolver() |
protected abstract Class<?> |
buildSuperclass(TypeDefinition typeDefinition) |
String |
getClassName() |
protected abstract String |
getClassNameSuffix() |
String |
getPackage() |
protected abstract String |
getQName() |
boolean |
getRequiresTypeResolver() |
protected boolean |
requiresCategoryNameMethod() |
protected abstract boolean |
requiresQNameMethod() |
generateGetter, generateOptionalGetter, getResourcesPath, getSourcesPath, writeClassToFile, writeClassToFilegetTemplateEngineprotected final TypeDefinition typeDefinition
protected Class<?> superclass
public SdkAbstractStaticTypeResolver(Path outputDir, ConnectorModel connectorModel, SdkConnector sdkConnector, ConnectorOperation operation, TypeDefinition typeDefinition, FileGenerationUtils.SchemaNameType schemaNameType, String partName)
sdkConnector - the parent SdkConnector for this typetypeDefinition - The type definition which this metadata will be created foroperation - The operation this type definition will be generated for. It will be used to generate the schema name.schemaNameType - The type of name that this schema will get.partName - When this schema corresponds to a multipart part, this part name will be used to generate the schema name.
Must be an empty string if it he type definition does not correspond to a part.protected abstract Class<?> buildSuperclass(TypeDefinition typeDefinition)
protected abstract String getClassNameSuffix()
public String getClassName()
public String getPackage()
public void applyTemplates()
throws TemplatingException
applyTemplates in class TemplateEntityTemplatingExceptionprotected boolean requiresCategoryNameMethod()
protected abstract boolean requiresQNameMethod()
protected abstract String getQName()
protected abstract boolean buildRequiresTypeResolver()
public boolean getRequiresTypeResolver()
Copyright © 2019. All rights reserved.