Package de.xima.fc.workflow.data
Class GenericFormPersistFile
- java.lang.Object
-
- de.xima.fc.workflow.data.GenericFormPersistFile
-
public final class GenericFormPersistFile extends Object
Describes the data of a generic form persist file, whose exact meaning has yet to be determined.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description GenericFormPersistFile(String fileName, byte[] fileContent)
Creates a new generic persist file with the given data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExtension()
byte[]
getFileContent()
String
getFileName()
Optional<com.alibaba.fastjson.JSONObject>
getJsonObject()
Optional<String>
getPlainText()
Optional<Document>
getXml()
-
-
-
Constructor Detail
-
GenericFormPersistFile
public GenericFormPersistFile(String fileName, byte[] fileContent)
Creates a new generic persist file with the given data.- Parameters:
fileName
- Name of the file.fileContent
- Byte content of the file.
-
-
Method Detail
-
getExtension
public String getExtension()
- Returns:
- Extension of the file.
-
getFileContent
public byte[] getFileContent()
- Returns:
- Byte content of the file.
-
getFileName
public String getFileName()
- Returns:
- Name of the file.
-
getJsonObject
public Optional<com.alibaba.fastjson.JSONObject> getJsonObject()
- Returns:
- The file content as a JSON object, if it can be parsed as such.
-
getPlainText
public Optional<String> getPlainText()
- Returns:
- The file content as plain text, if it can be parsed as such.
-
-