Project

General

Profile

« Previous | Next » 

Revision b9dcae47

Added by Andreas Müller over 4 years ago

cleanup

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiTransformer.java
231 231
    public static String kINGDOM_BACTERIA_STRING = "Bacteria";
232 232
    public static String KINGDOM_CHROMISTA_STRING = "Chromista";
233 233

  
234
	//ranks all kingdoms
234
	//ranks of all kingdoms
235 235
    public static int Kingdom = 10;
236 236
    public static int Subkingdom = 20;
237 237
    public static int Phylum = 30;  //Phylum and Division is same (#8541) according to ICNAFP
......
253 253
    public static int Variety = 240;
254 254
    public static int Forma = 260;
255 255

  
256
    //ranks some kingdoms
256
    //ranks of some kingdoms
257 257
    public static int Infrakingdom = 25; //2,3,5,7
258 258
    public static int Infraphylum = 45;  //2,7
259 259
    public static int Superclass = 50;   //2,5,6,7
......
836 836
					presenceTerm.equals(PresenceAbsenceTerm.INTRODUCED_FORMERLY_INTRODUCED()) || presenceTerm.equals(PresenceAbsenceTerm.NATIVE_REPORTED_IN_ERROR() ) ) {
837 837
				result = STATUS_ABSENT;
838 838
			}else if (presenceTerm.getUuid().equals(BerlinModelTransformer.uuidStatusUndefined)){
839
			    logger.warn("Status undefined is mapped present for now. Needs further checking. (E+M specific)");
839
			    logger.warn("Status 'undefined' is mapped present for now. Needs further checking. (E+M specific)");
840 840
			    result = STATUS_PRESENT;
841 841
			} else {
842 842
				logger.error("PresenceAbsenceTerm could not be translated to datawarehouse occurrence status id: " + presenceTerm.getLabel());
......
861 861

  
862 862
	@Override
863 863
	public String getCacheByNamedArea(NamedArea namedArea) throws UndefinedTransformerMethodException {
864
		NamedArea area = CdmBase.deproxy(namedArea, NamedArea.class);
864
		NamedArea area = CdmBase.deproxy(namedArea);
865 865
		if (area == null){
866 866
			return null;
867 867
		}else{
......
871 871

  
872 872
	@Override
873 873
	public Object getKeyByNamedArea(NamedArea area) throws UndefinedTransformerMethodException {
874
		NamedArea namedArea = CdmBase.deproxy(area, NamedArea.class);
874
		NamedArea namedArea = CdmBase.deproxy(area);
875 875

  
876 876
		if (area == null) {
877 877
			return null;

Also available in: Unified diff