extend wailing interval after dropping collections a little

This commit is contained in:
Axel Uhl
2012-06-08 17:04:58 +02:00
parent 36b79c844b
commit c41cef4c6f
4 changed files with 22 additions and 0 deletions
@@ -1,9 +1,13 @@
package com.sap.sailing.kiworesultimport;
import com.sap.sailing.domain.common.MaxPointsReason;
public interface Race {
String getStatus();
Double getPoints();
Integer getNumber();
MaxPointsReason getMaxPointsReason();
}
@@ -2,6 +2,7 @@ package com.sap.sailing.kiworesultimport.impl;
import org.w3c.dom.Node;
import com.sap.sailing.domain.common.MaxPointsReason;
import com.sap.sailing.kiworesultimport.Race;
public class RaceImpl extends AbstractNodeWrapper implements Race {
@@ -26,4 +27,15 @@ public class RaceImpl extends AbstractNodeWrapper implements Race {
return namedItem == null || namedItem.getNodeValue() == null || namedItem.getNodeValue().trim().length() == 0 ? null : namedItem.getNodeValue();
}
@Override
public MaxPointsReason getMaxPointsReason() {
MaxPointsReason result;
String status = getStatus();
if (status != null) {
result = MaxPointsReason.valueOf(status);
} else {
result = MaxPointsReason.NONE;
}
return result;
}
}