|
1
|
|
|
/* |
|
2
|
|
|
* Copyright 2014, Armenak Grigoryan, and individual contributors as indicated |
|
3
|
|
|
* by the @authors tag. See the copyright.txt in the distribution for a |
|
4
|
|
|
* full listing of individual contributors. |
|
5
|
|
|
* |
|
6
|
|
|
* This is free software; you can redistribute it and/or modify it |
|
7
|
|
|
* under the terms of the GNU Lesser General Public License as |
|
8
|
|
|
* published by the Free Software Foundation; either version 2.1 of |
|
9
|
|
|
* the License, or (at your option) any later version. |
|
10
|
|
|
* |
|
11
|
|
|
* This software is distributed in the hope that it will be useful, |
|
12
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
14
|
|
|
* Lesser General Public License for more details. |
|
15
|
|
|
*/ |
|
16
|
|
|
package com.strider.datadefender.file.metadata; |
|
17
|
|
|
|
|
18
|
|
|
/** |
|
19
|
|
|
* Data object to hold all metadata for matching data in Discovery applications. |
|
20
|
|
|
* Currently this object holds column and table metadata; ie, duplicating info. |
|
21
|
|
|
* But since the numbers of tables/columns will always be |
|
22
|
|
|
* limited in size, don't really see an immediate need to refactor this. |
|
23
|
|
|
* @author Armenak Grigoryan |
|
24
|
|
|
*/ |
|
25
|
|
|
public class FileMatchMetaData { |
|
26
|
|
|
private String model = ""; |
|
27
|
|
|
private final String directory; |
|
28
|
|
|
private final String fileName; |
|
29
|
|
|
private double averageProbability; |
|
30
|
|
|
|
|
31
|
|
|
public FileMatchMetaData(final String directory, final String fileName) { |
|
32
|
|
|
this.directory = directory; |
|
33
|
|
|
this.fileName = fileName; |
|
34
|
|
|
} |
|
35
|
|
|
|
|
36
|
|
|
public double getAverageProbability() { |
|
37
|
|
|
return this.averageProbability; |
|
38
|
|
|
} |
|
39
|
|
|
|
|
40
|
|
|
public void setAverageProbability(final double averageProbability) { |
|
41
|
|
|
this.averageProbability = averageProbability; |
|
42
|
|
|
} |
|
43
|
|
|
|
|
44
|
|
|
public String getDirectory() { |
|
45
|
|
|
return this.directory; |
|
46
|
|
|
} |
|
47
|
|
|
|
|
48
|
|
|
public String getFileName() { |
|
49
|
|
|
return this.fileName; |
|
50
|
|
|
} |
|
51
|
|
|
|
|
52
|
|
|
public String getModel() { |
|
53
|
|
|
return this.model; |
|
54
|
|
|
} |
|
55
|
|
|
|
|
56
|
|
|
public void setModel(final String model) { |
|
57
|
|
|
this.model = model; |
|
58
|
|
|
} |
|
59
|
|
|
|
|
60
|
|
|
@Override |
|
61
|
|
|
public String toString() { |
|
62
|
|
|
return this.directory + "." + this.fileName; |
|
63
|
|
|
} |
|
64
|
|
|
} |
|
65
|
|
|
|