| 1 |
|
package org.trails.component.blob; |
| 2 |
|
|
| 3 |
|
import org.trails.descriptor.extension.ITrailsBlob; |
| 4 |
|
|
| 5 |
0 |
public class TrailsBlobImpl implements ITrailsBlob |
| 6 |
|
{ |
| 7 |
|
private String fileName; |
| 8 |
|
private String filePath; |
| 9 |
|
private String contentType; |
| 10 |
|
private byte[] bytes; |
| 11 |
|
|
| 12 |
|
public String getFileName() |
| 13 |
|
{ |
| 14 |
0 |
return fileName; |
| 15 |
|
} |
| 16 |
|
|
| 17 |
|
public void setFileName(String fileName) |
| 18 |
|
{ |
| 19 |
0 |
this.fileName = fileName; |
| 20 |
0 |
} |
| 21 |
|
|
| 22 |
|
public String getFilePath() |
| 23 |
|
{ |
| 24 |
0 |
return filePath; |
| 25 |
|
} |
| 26 |
|
|
| 27 |
|
public void setFilePath(String filePath) |
| 28 |
|
{ |
| 29 |
0 |
this.filePath = filePath; |
| 30 |
0 |
} |
| 31 |
|
|
| 32 |
|
public String getContentType() |
| 33 |
|
{ |
| 34 |
0 |
return contentType; |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
public void setContentType(String contentType) |
| 38 |
|
{ |
| 39 |
0 |
this.contentType = contentType; |
| 40 |
0 |
} |
| 41 |
|
|
| 42 |
|
public byte[] getBytes() |
| 43 |
|
{ |
| 44 |
0 |
return bytes; |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
public void setBytes(byte[] bytes) |
| 48 |
|
{ |
| 49 |
0 |
this.bytes = bytes; |
| 50 |
0 |
} |
| 51 |
|
|
| 52 |
|
public void reset() |
| 53 |
|
{ |
| 54 |
0 |
fileName = null; |
| 55 |
0 |
filePath = null; |
| 56 |
0 |
contentType = null; |
| 57 |
0 |
bytes = null; |
| 58 |
0 |
} |
| 59 |
|
} |