* Returns the AstroBindingConfig for old binding style.
*/
private AstroBindingConfig getOldAstroBindingConfig(AstroBindingConfigHelper helper) {
String type = helper.type.toUpperCase();
if ("AZIMUTH".equals(type)) {
return new AstroBindingConfig(PlanetName.SUN, "position", "azimuth");
} else if ("ELEVATION".equals(type)) {
return new AstroBindingConfig(PlanetName.SUN, "position", "elevation");
} else if ("SUNRISE".equals(type)) {
return new AstroBindingConfig(PlanetName.SUN, "rise", "start");
} else if ("NOON".equals(type)) {
return new AstroBindingConfig(PlanetName.SUN, "noon", "start");
} else if ("SUNSET".equals(type)) {
return new AstroBindingConfig(PlanetName.SUN, "set", "end");
} else if ("SUNRISE_TIME".equals(type)) {
return new AstroBindingConfig(PlanetName.SUN, "rise", "start");
} else if ("NOON_TIME".equals(type)) {
return new AstroBindingConfig(PlanetName.SUN, "noon", "start");
} else if ("SUNSET_TIME".equals(type)) {
return new AstroBindingConfig(PlanetName.SUN, "set", "end");
}
return null;
}