class urn_perun_group_attribute_def_def_groupSynchronizationTimes extends GroupAttributesModuleAbstract implements GroupAttributesModuleImplApi {

	@Override
	public void checkAttributeSyntax(PerunSessionImpl sess, Group group, Attribute attribute) throws WrongAttributeValueException {
		//Null value is ok, means no settings for group
		if(attribute.getValue() == null) return;

		ArrayList<String> attrValues = attribute.valueAsList();

		for (String attrValue : attrValues) {
			Matcher matcher = pattern.matcher(attrValue);
			if (!matcher.matches()) {
				throw new WrongAttributeValueException(attribute, group, "Some of values are not in format HH:MM or are not rounded to 5 minute. For example 08:50 or 20:55.");
			}
		}
	}

}