Project

General

Profile

1
package eu.dnetlib.pid.resolver;
2

    
3

    
4
import eu.dnetlib.pid.resolver.model.ResolvedObject;
5

    
6
/**
7
 * The Interface DOIResolver.
8
 */
9
public interface PIDResolver extends Comparable<PIDResolver> {
10

    
11

    
12
	int getOrder();
13

    
14
	/**
15
     * Resolve The Object with the following pid.
16
     *
17
	 * @param pid     the persistent identifier to rescolve
18
	 * @param pidType the type of persistent identifier to resolve
19
	 * @return the DLIObject resolved if exists, null otherwise
20
	 */
21
	ResolvedObject retrievePID(final String pid, final String pidType, final boolean offline);
22

    
23
	/**
24
	 * Resolve and return the Dnet Identifier
25
	 *
26
	 * @param pid     the persistent identifier to rescolve
27
	 * @param pidType the type of persistent identifier to resolve
28
	 * @return the Dnet Identifier of the DLI Object resolved if exists, null otherwise
29
	 */
30

    
31
	String retrieveDnetID(final String pid, final String pidType, final boolean offline);
32

    
33
}
(2-2/2)