class urn_perun_resource_attribute_def_def_k4GroupCode extends ResourceAttributesModuleAbstract implements ResourceAttributesModuleImplApi {

	@Override
	public void checkAttributeSyntax(PerunSessionImpl perunSession, Resource resource, Attribute attribute) throws WrongAttributeValueException {

		if (attribute.getValue() == null) return;
		if ((attribute.valueAsString()).length() > 20) throw new WrongAttributeValueException("Code of Group in K4 mustn't exceed 20 characters.");

	}

}