Class TemplateInput
java.lang.Object
io.clientcore.annotation.processor.models.TemplateInput
Represents the input required for generating a template.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds an import to the imports map.addImport(TypeMirror type) Adds an import to the imports map based on the type mirror.getHost()Gets the host.Gets the list of HTTP request contexts.Gets the imports map.Gets the package name.Gets the fully qualified name of the service interface.Gets the short name of the service interface implementation.Gets the short name of the service interface.List<io.clientcore.core.http.annotations.UnexpectedResponseExceptionDetail> Gets the list of unexpected response exception details.voidSets the host.voidsetHttpRequestContexts(List<HttpRequestContext> httpRequestContexts) Sets the HTTP request contexts.voidsetPackageName(String packageName) Sets the package name.voidsetServiceInterfaceFQN(String serviceInterfaceFQN) Sets the fully qualified name of the service interface.voidsetServiceInterfaceImplShortName(String serviceInterfaceImplShortName) Sets the short name of the service interface implementation.voidsetServiceInterfaceShortName(String serviceInterfaceShortName) Sets the short name of the service interface.voidsetUnexpectedResponseExceptionDetails(List<io.clientcore.core.http.annotations.UnexpectedResponseExceptionDetail> unexpectedResponseExceptionDetails) Sets the list of unexpected response exception details.
-
Constructor Details
-
TemplateInput
public TemplateInput()Initializes a new instance of theTemplateInputclass.
-
-
Method Details
-
getHost
Gets the host.- Returns:
- the host.
-
setHost
Sets the host.- Parameters:
host- the host to set.
-
getImports
Gets the imports map.- Returns:
- the imports map.
-
getPackageName
Gets the package name.- Returns:
- the package name.
-
setPackageName
Sets the package name.- Parameters:
packageName- the package name to set.
-
getServiceInterfaceShortName
Gets the short name of the service interface.- Returns:
- the short name of the service interface.
-
setServiceInterfaceShortName
Sets the short name of the service interface.- Parameters:
serviceInterfaceShortName- the short name of the service interface to set.
-
getServiceInterfaceImplShortName
Gets the short name of the service interface implementation.- Returns:
- the short name of the service interface implementation.
-
setServiceInterfaceImplShortName
Sets the short name of the service interface implementation.- Parameters:
serviceInterfaceImplShortName- the short name of the service interface implementation to set.
-
addImport
Adds an import to the imports map.- Parameters:
importFQN- the fully qualified name of the import.- Returns:
- the short name of the class.
-
addImport
Adds an import to the imports map based on the type mirror.- Parameters:
type- the type mirror.- Returns:
- the short name of the class.
-
setHttpRequestContexts
Sets the HTTP request contexts.- Parameters:
httpRequestContexts- the list of HTTP request contexts to set.
-
getHttpRequestContexts
Gets the list of HTTP request contexts.- Returns:
- the list of HTTP request contexts.
-
setServiceInterfaceFQN
Sets the fully qualified name of the service interface.- Parameters:
serviceInterfaceFQN- the fully qualified name of the service interface to set.
-
getServiceInterfaceFQN
Gets the fully qualified name of the service interface.- Returns:
- the fully qualified name of the service interface.
-
getUnexpectedResponseExceptionDetails
public List<io.clientcore.core.http.annotations.UnexpectedResponseExceptionDetail> getUnexpectedResponseExceptionDetails()Gets the list of unexpected response exception details.- Returns:
- the list of unexpected response exception details.
-
setUnexpectedResponseExceptionDetails
public void setUnexpectedResponseExceptionDetails(List<io.clientcore.core.http.annotations.UnexpectedResponseExceptionDetail> unexpectedResponseExceptionDetails) Sets the list of unexpected response exception details.- Parameters:
unexpectedResponseExceptionDetails- the list of unexpected response exception details to set.
-