001 package org.trails.component.blob;
002
003 import org.trails.descriptor.extension.ITrailsBlob;
004
005 public class TrailsBlobImpl implements ITrailsBlob
006 {
007 private String fileName;
008 private String filePath;
009 private String contentType;
010 private byte[] bytes;
011
012 public String getFileName()
013 {
014 return fileName;
015 }
016
017 public void setFileName(String fileName)
018 {
019 this.fileName = fileName;
020 }
021
022 public String getFilePath()
023 {
024 return filePath;
025 }
026
027 public void setFilePath(String filePath)
028 {
029 this.filePath = filePath;
030 }
031
032 public String getContentType()
033 {
034 return contentType;
035 }
036
037 public void setContentType(String contentType)
038 {
039 this.contentType = contentType;
040 }
041
042 public byte[] getBytes()
043 {
044 return bytes;
045 }
046
047 public void setBytes(byte[] bytes)
048 {
049 this.bytes = bytes;
050 }
051
052 public void reset()
053 {
054 fileName = null;
055 filePath = null;
056 contentType = null;
057 bytes = null;
058 }
059 }