use of jp.ossc.nimbus.service.message.MessageRecordFactory in project nimbus by nimbus-org.
the class GroupCategoryService method setLabels.
// GroupCategoryServiceMBeanのJavaDoc
public void setLabels(Properties labels) throws IllegalArgumentException {
final Iterator ranges = labels.keySet().iterator();
while (ranges.hasNext()) {
final String rangeStr = (String) ranges.next();
final Range range = parseRange(rangeStr);
if (labelMap.containsKey(new Integer(range.min)) || labelMap.containsKey(new Integer(range.max))) {
final MessageRecordFactory message = getMessageRecordFactory();
throw new IllegalArgumentException(message.findMessage(SCGRY00003));
}
labelMap.put(range, labels.get(rangeStr));
}
}
Aggregations