1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2015 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package eu.etaxonomy.cdm.batch.validation;
|
11
|
|
12
|
import eu.etaxonomy.cdm.api.service.IService;
|
13
|
import eu.etaxonomy.cdm.model.common.ICdmBase;
|
14
|
|
15
|
/**
|
16
|
* @author ayco_holleman
|
17
|
* @date 29 jan. 2015
|
18
|
*
|
19
|
*/
|
20
|
class EntityValidationUnit<T extends ICdmBase, S extends T> {
|
21
|
|
22
|
private final Class<S> entityClass;
|
23
|
private final IService<T> entityLoader;
|
24
|
|
25
|
EntityValidationUnit(Class<S> entityClass, IService<T> entityLoader) {
|
26
|
this.entityClass = entityClass;
|
27
|
this.entityLoader = entityLoader;
|
28
|
}
|
29
|
|
30
|
/**
|
31
|
* @return the entityClass
|
32
|
*/
|
33
|
Class<S> getEntityClass() {
|
34
|
return entityClass;
|
35
|
}
|
36
|
|
37
|
/**
|
38
|
* @return the entityLoader
|
39
|
*/
|
40
|
IService<T> getEntityLoader() {
|
41
|
return entityLoader;
|
42
|
}
|
43
|
|
44
|
}
|