Package net.webpdf.wsclient.schema.beans
Class DocumentFile
- java.lang.Object
-
- net.webpdf.wsclient.schema.beans.DocumentFile
-
- All Implemented Interfaces:
Serializable
public class DocumentFile extends Object implements Serializable
An instance of
DocumentFileprovides information about aDocumentuploaded to aSessionof the webPDF server.Those information include the referencable document ID of the
Document, theDocument´s size, name, extension MIME type etc.The class
DocumentFileserves as a data transfer objectHttpEntityfor such documents. The classDocumentwraps suchDocumentFiles for easier handling by the webPDF wsclient.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable StringgetDocumentId()Returns the document ID of this document.@Nullable FailuregetError()Returns the storedFailure, that was caused by the creation attempt of this document.@Nullable StringgetFileExtension()Returns the file extension of this document.@Nullable StringgetFileLastModified()Returns the last known modification date of this document.@Nullable StringgetFileName()Returns the file name of this document.longgetFileSize()Returns the file size of this document.@Nullable StringgetFileTypeGroups()Returns the file type group of this document.intgetFileTypeId()Returns the file type id of this document.@Nullable DocumentTypegetMetadata()Return theDocumentTypemetadata of this document.@Nullable StringgetMimeType()Returns the MIME type of this document.@Nullable StringgetParentDocumentId()Returns the document ID of the parent document.booleanisIsFileLocked()Returns the file lock of this document.voidsetDocumentId(@Nullable String documentId)Sets the document ID of this document.voidsetError(@Nullable Failure error)Sets theFailure, that was caused by the creation of this document.voidsetFileExtension(@Nullable String documentExtension)Sets the file extension of this document.voidsetFileLastModified(@Nullable String fileLastModified)Sets the modification date of this document.voidsetFileName(@Nullable String documentName)Sets the file name of this document.voidsetFileSize(long fileSize)Sets the file size of this document.voidsetFileTypeGroups(@Nullable String setFileTypeGroups)Sets the file type group of this document.voidsetFileTypeId(int fileTypeId)Sets the file type id of this document.voidsetIsFileLocked(boolean isFileLocked)Sets the file lock of this document.voidsetMetadata(@Nullable DocumentType metadata)Sets the metadata of this document.voidsetMimeType(@Nullable String mimeType)Sets the MIME type of this document.voidsetParentDocumentId(@Nullable String parentDocumentId)Sets the document ID of the parent document.
-
-
-
Method Detail
-
getDocumentId
@Nullable public @Nullable String getDocumentId()
Returns the document ID of this document.- Returns:
- The document ID of this document.
-
setDocumentId
public void setDocumentId(@Nullable @Nullable String documentId)Sets the document ID of this document.- Parameters:
documentId- The document ID of this document.
-
getParentDocumentId
@Nullable public @Nullable String getParentDocumentId()
Returns the document ID of the parent document.- Returns:
- The document ID of the parent document.
-
setParentDocumentId
public void setParentDocumentId(@Nullable @Nullable String parentDocumentId)Sets the document ID of the parent document.- Parameters:
parentDocumentId- The document ID of the parent document.
-
getFileSize
public long getFileSize()
Returns the file size of this document.- Returns:
- The file size of this document.
-
setFileSize
public void setFileSize(long fileSize)
Sets the file size of this document.- Parameters:
fileSize- The file size of this document.
-
getMimeType
@Nullable public @Nullable String getMimeType()
Returns the MIME type of this document.- Returns:
- The MIME type of this document.
-
setMimeType
public void setMimeType(@Nullable @Nullable String mimeType)Sets the MIME type of this document.- Parameters:
mimeType- The MIME type of this document.
-
getFileName
@Nullable public @Nullable String getFileName()
Returns the file name of this document.- Returns:
- the file name of this document.
-
setFileName
public void setFileName(@Nullable @Nullable String documentName)Sets the file name of this document.- Parameters:
documentName- The file name of this document.
-
getFileExtension
@Nullable public @Nullable String getFileExtension()
Returns the file extension of this document.- Returns:
- The file extension of this document.
-
setFileExtension
public void setFileExtension(@Nullable @Nullable String documentExtension)Sets the file extension of this document.- Parameters:
documentExtension- The file extension of this document.
-
isIsFileLocked
public boolean isIsFileLocked()
Returns the file lock of this document.- Returns:
- The file lock of this document.
-
setIsFileLocked
public void setIsFileLocked(boolean isFileLocked)
Sets the file lock of this document.- Parameters:
isFileLocked- The file lock of this document.
-
getFileTypeId
public int getFileTypeId()
Returns the file type id of this document.- Returns:
- The file type id of this document.
-
setFileTypeId
public void setFileTypeId(int fileTypeId)
Sets the file type id of this document.- Parameters:
fileTypeId- The file type id of this document.
-
getFileTypeGroups
@Nullable public @Nullable String getFileTypeGroups()
Returns the file type group of this document.- Returns:
- The file type group of this document.
-
setFileTypeGroups
public void setFileTypeGroups(@Nullable @Nullable String setFileTypeGroups)Sets the file type group of this document.- Parameters:
setFileTypeGroups- The file type group of this document.
-
getFileLastModified
@Nullable public @Nullable String getFileLastModified()
Returns the last known modification date of this document.- Returns:
- The last known modification date of this document.
-
setFileLastModified
public void setFileLastModified(@Nullable @Nullable String fileLastModified)Sets the modification date of this document.- Parameters:
fileLastModified- The modification date of this document.
-
getMetadata
@Nullable public @Nullable DocumentType getMetadata()
Return theDocumentTypemetadata of this document.- Returns:
- The
DocumentTypemetadata of this document.
-
setMetadata
public void setMetadata(@Nullable @Nullable DocumentType metadata)Sets the metadata of this document.- Parameters:
metadata- The metadata of this document.
-
getError
@Nullable public @Nullable Failure getError()
Returns the storedFailure, that was caused by the creation attempt of this document.- Returns:
- The
Failure, caused by the attempted creation of this document.
-
-