rounding fix for the xml

#story[1087]
This commit is contained in:
hba56
2017-08-07 12:16:37 +12:00
parent 0b74acadff
commit 950a801d16
6 changed files with 33 additions and 8 deletions
@@ -31,4 +31,19 @@ public enum RoundingType {
* opposite of SP
*/
PS;
public static RoundingType getValueOf(String value) {
switch (value) {
case "Port":
return RoundingType.Port;
case "Starboard":
return RoundingType.Starboard;
case "SP":
return RoundingType.Port;
case "PS":
return RoundingType.Starboard;
default:
return null;
}
}
}