Revision 49332
Added by Sandro La Bruzzo over 6 years ago
DLIObjectProvenance.java | ||
---|---|---|
13 | 13 |
* |
14 | 14 |
* @author sandro |
15 | 15 |
*/ |
16 |
public class DLIObjectProvenance implements ObjectProvenance {
|
|
16 |
public class DLIObjectProvenance extends ObjectProvenance {
|
|
17 | 17 |
|
18 |
/** |
|
19 |
* The datasource. |
|
20 |
*/ |
|
21 |
private String datasource; |
|
22 | 18 |
|
23 |
private String datasourceId; |
|
24 |
|
|
25 | 19 |
/** |
26 | 20 |
* The publisher. |
27 | 21 |
*/ |
... | ... | |
131 | 125 |
return StringEscapeUtils.escapeXml11(this.publisher); |
132 | 126 |
} |
133 | 127 |
|
134 |
/** |
|
135 |
* Gets the datasource. |
|
136 |
* |
|
137 |
* @return the datasource |
|
138 |
*/ |
|
139 |
public String getDatasource() { |
|
140 |
return datasource; |
|
141 |
} |
|
142 | 128 |
|
143 |
/** |
|
144 |
* Sets the datasource. |
|
145 |
* |
|
146 |
* @param datasource the new datasource |
|
147 |
*/ |
|
148 |
public void setDatasource(final String datasource) { |
|
149 |
this.datasource = datasource; |
|
150 |
} |
|
151 | 129 |
|
152 |
/** |
|
153 |
* Gets the escaped datasource. |
|
154 |
* |
|
155 |
* @return the escaped datasource |
|
156 |
*/ |
|
157 |
public String getEscapedDatasource() { |
|
158 |
return StringEscapeUtils.escapeXml11(this.datasource); |
|
159 |
} |
|
160 | 130 |
|
161 |
public String getDatasourceId() { |
|
162 |
return datasourceId; |
|
163 |
} |
|
164 |
|
|
165 |
public void setDatasourceId(String datasourceId) { |
|
166 |
this.datasourceId = datasourceId; |
|
167 |
} |
|
168 |
|
|
169 |
public String getEscapedDatasourceId() { |
|
170 |
return StringEscapeUtils.escapeXml11(this.datasourceId); |
|
171 |
} |
|
172 |
|
|
173 | 131 |
/** |
174 | 132 |
* Gets the provision mode. |
175 | 133 |
* |
... | ... | |
207 | 165 |
} |
208 | 166 |
|
209 | 167 |
/** |
210 |
* {@inheritDoc} |
|
211 |
* |
|
212 |
* @see Object#toString() |
|
213 |
*/ |
|
214 |
@Override |
|
215 |
public String toString() { |
|
216 |
String s = "\n\t\t%s \t Completion Status:%s \t Provision Mode:%s"; |
|
217 |
return String.format(s, this.getDatasource(), this.getCompletionStatus(), this.getProvisionMode()); |
|
218 |
} |
|
219 |
|
|
220 | 168 |
/** |
221 | 169 |
* Gets the datasource contribution. |
222 | 170 |
* |
Also available in: Unified diff
minor