Class ExcelAttachment<T>

java.lang.Object
bld.generator.report.excel.ExcelAttachment<T>
Type Parameters:
T - the generic type

public class ExcelAttachment<T> extends Object
The Class ExcelAttachment.
ExcelAttachment is used to attachment files within file excel.
It is composed by:
  • Attachment - to define the file
  • AttachmentType - to set type file
  • FileName - to define file name
The "attachment" field can be a byte array or a string, the string type represent the file path.
It is used by RowSheet classes.
  • Method Details

    • newInstance

      public static ExcelAttachment<byte[]> newInstance(byte[] attachment)
      New instance.
      Parameters:
      attachment - the attachment
      Returns:
      the excel attachment
    • newInstance

      public static ExcelAttachment<String> newInstance(String attachment)
      New instance.
      Parameters:
      attachment - the attachment
      Returns:
      the excel attachment
    • getAttachment

      public T getAttachment()
      Gets the attachment.
      Returns:
      the attachment
    • setAttachment

      public void setAttachment(T attachment)
      Sets the attachment.
      Parameters:
      attachment - the new attachment
    • getAttachmentType

      public AttachmentType getAttachmentType()
      Gets the attachment type.
      Returns:
      the attachment type
    • getFileName

      public String getFileName()
      Gets the file name.
      Returns:
      the file name
    • setAttachmentType

      public void setAttachmentType(AttachmentType attachmentType)
      Sets the attachment type.
      Parameters:
      attachmentType - the new attachment type
    • setFileName

      public void setFileName(String nomeFile)
      Sets the file name.
      Parameters:
      nomeFile - the new file name