Revision 5b2db12a
Added by Andreas Müller about 3 years ago
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/dto/assembler/converter/LsidProxyConverter.java | ||
---|---|---|
1 | 1 |
/** |
2 | 2 |
* Copyright (C) 2007 EDIT |
3 |
* European Distributed Institute of Taxonomy
|
|
3 |
* European Distributed Institute of Taxonomy |
|
4 | 4 |
* http://www.e-taxonomy.eu |
5 |
*
|
|
5 |
* |
|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
... | ... | |
17 | 17 |
public class LsidProxyConverter implements CustomConverter { |
18 | 18 |
|
19 | 19 |
private String lsidProxyServiceUrl; |
20 |
|
|
20 |
|
|
21 | 21 |
private String authorityPart; |
22 |
|
|
22 |
|
|
23 | 23 |
public void setLsidProxyServiceUrl(String lsidProxyServiceUrl) { |
24 | 24 |
this.lsidProxyServiceUrl = lsidProxyServiceUrl; |
25 | 25 |
} |
26 |
|
|
26 |
|
|
27 | 27 |
public void setAuthorityPart(String authorityPart) { |
28 | 28 |
this.authorityPart = authorityPart; |
29 | 29 |
} |
30 | 30 |
|
31 |
public Object convert(Object destination, Object source, Class destClass, Class sourceClass) { |
|
31 |
@Override |
|
32 |
public Object convert(Object destination, Object source, Class<?> destClass, Class<?> sourceClass) { |
|
32 | 33 |
if (source == null || ((LSID)source).toString() == null || ((LSID)source).toString().equals("")) { |
33 | 34 |
return null; |
34 | 35 |
} |
... | ... | |
43 | 44 |
+ destination + " and " + source); |
44 | 45 |
} |
45 | 46 |
} |
46 |
|
|
47 |
} |
|
47 |
} |
Also available in: Unified diff
cleanup