if (numberRange.getTo() != null) {
target.addAttribute("to", numberRange.getTo());
}
} else if (plotBandRange instanceof DateTimeRange) {
target.addAttribute("valueType", "date");
DateTimeRange dateRange = (DateTimeRange) plotBandRange;
target.startTag("from");
if (dateRange.getFrom() != null) {
target.addAttribute("year",
getYearFromDate(dateRange.getFrom()));
target.addAttribute("month",
getMonthFromDate(dateRange.getFrom()));
target.addAttribute("day",
getDayFromDate(dateRange.getFrom()));
}
target.endTag("from");
target.startTag("to");
if (dateRange.getTo() != null) {
target.addAttribute("year",
getYearFromDate(dateRange.getTo()));
target.addAttribute("month",
getMonthFromDate(dateRange.getTo()));
target.addAttribute("day",
getDayFromDate(dateRange.getTo()));
}
target.endTag("to");
}
}
target.endTag("rangeValue");