public abstract class SdkAbstractStaticMetadataResolver extends JavaTemplateEntity
| Modifier and Type | Field and Description |
|---|---|
protected Class<?> |
superclass |
protected TypeDefinition |
typeDefinition |
connectorModel, NAME_MEMBER, outputDir, VALUE_MEMBER| Constructor and Description |
|---|
SdkAbstractStaticMetadataResolver(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 boolean |
buildRequiresMetadataResolver() |
protected abstract Class<?> |
buildSuperclass(TypeDefinition typeDefinition) |
String |
getClassName() |
protected abstract String |
getClassNameSuffix() |
String |
getPackage() |
protected abstract String |
getQName() |
boolean |
getRequiresMetadataResolver() |
protected boolean |
requiresCategoryNameMethod() |
protected abstract boolean |
requiresFormatMethod() |
protected abstract boolean |
requiresQNameMethod() |
protected abstract boolean |
requiresToWriteSchema() |
generateGetter, generateOptionalGetter, getResourcesPath, getSourcesPath, writeClassToFile, writeClassToFilegetTemplateEngineprotected final TypeDefinition typeDefinition
protected Class<?> superclass
public SdkAbstractStaticMetadataResolver(Path outputDir, ConnectorModel connectorModel, SdkConnector sdkConnector, ConnectorOperation operation, TypeDefinition typeDefinition, FileGenerationUtils.SchemaNameType schemaNameType, String partName) throws TemplatingException
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.TemplatingExceptionprotected abstract Class<?> buildSuperclass(TypeDefinition typeDefinition) throws TemplatingException
TemplatingExceptionprotected 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 boolean requiresFormatMethod()
protected abstract String getQName()
protected boolean buildRequiresMetadataResolver()
public boolean getRequiresMetadataResolver()
protected abstract boolean requiresToWriteSchema()
Copyright © 2020. All rights reserved.