Package net.webpdf.wsclient.openapi
Class OperationTemplateFile
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationTemplateFile
-
public class OperationTemplateFile extends Object
The template is passed as Base64-encoded content in the \"file\" element. This template is HTML-based and can contain variables. For more information regarding the use of the templates, please refer to the chapter \"Server-Conversion - Templates\".
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationTemplateFile.SourceEnumSelects the data source for the hereby expressed resource.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_SOURCEstatic StringJSON_PROPERTY_URIstatic StringJSON_PROPERTY_VALUE
-
Constructor Summary
Constructors Constructor Description OperationTemplateFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)@Nullable StringgetName()The name of the template file.@Nullable OperationTemplateFile.SourceEnumgetSource()Selects the data source for the hereby expressed resource.@Nullable StringgetUri()The uri the data shall be located at.@org.jetbrains.annotations.Nullable byte[]getValue()Get valueinthashCode()OperationTemplateFilename(String name)voidsetName(String name)voidsetSource(OperationTemplateFile.SourceEnum source)voidsetUri(String uri)voidsetValue(byte[] value)OperationTemplateFilesource(OperationTemplateFile.SourceEnum source)StringtoString()OperationTemplateFileuri(String uri)OperationTemplateFilevalue(byte[] value)
-
-
-
Field Detail
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SOURCE
public static final String JSON_PROPERTY_SOURCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_URI
public static final String JSON_PROPERTY_URI
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALUE
public static final String JSON_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public OperationTemplateFile name(String name)
-
getName
@Nullable public @Nullable String getName()
The name of the template file.- Returns:
- name
-
setName
public void setName(String name)
-
source
public OperationTemplateFile source(OperationTemplateFile.SourceEnum source)
-
getSource
@Nullable public @Nullable OperationTemplateFile.SourceEnum getSource()
Selects the data source for the hereby expressed resource. Possible values are: * value = The element's value shall contain the BASE64 encoded data. * uri = The data shall be located at the given uri.- Returns:
- source
-
setSource
public void setSource(OperationTemplateFile.SourceEnum source)
-
uri
public OperationTemplateFile uri(String uri)
-
getUri
@Nullable public @Nullable String getUri()
The uri the data shall be located at. (This shall only have effect, if the \"source\" is \"uri\".)- Returns:
- uri
-
setUri
public void setUri(String uri)
-
value
public OperationTemplateFile value(byte[] value)
-
getValue
@Nullable public @org.jetbrains.annotations.Nullable byte[] getValue()
Get value- Returns:
- value
-
setValue
public void setValue(byte[] value)
-
-