cdmlib/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/idminter/IdentifierMinter.java @ 98cbbaaa
1 |
/**
|
---|---|
2 |
* Copyright (C) 2017 EDIT
|
3 |
* European Distributed Institute of Taxonomy
|
4 |
* http://www.e-taxonomy.eu
|
5 |
*
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms.
|
8 |
*/
|
9 |
package eu.etaxonomy.cdm.api.service.idminter; |
10 |
|
11 |
/**
|
12 |
* @author a.kohlbecker
|
13 |
* @since Dec 12, 2017
|
14 |
*
|
15 |
*/
|
16 |
public interface IdentifierMinter<T> { |
17 |
|
18 |
public class Identifier<T>{ |
19 |
T localId; |
20 |
|
21 |
String identifier; |
22 |
/**
|
23 |
* @return the localId
|
24 |
*/
|
25 |
public T getLocalId() { |
26 |
return localId; |
27 |
}
|
28 |
/**
|
29 |
* @return the identifier
|
30 |
*/
|
31 |
public String getIdentifier() { |
32 |
return identifier; |
33 |
}
|
34 |
|
35 |
|
36 |
}
|
37 |
|
38 |
public void setMinLocalId(T min); |
39 |
|
40 |
public void setMaxLocalId(T max); |
41 |
|
42 |
public Identifier<T> mint() throws OutOfIdentifiersException; |
43 |
}
|