class urn_perun_resource_attribute_def_def_replicaDestination extends ResourceAttributesModuleAbstract implements ResourceAttributesModuleImplApi {

	@Override
	public void checkAttributeSyntax(PerunSessionImpl perunSession, Resource resource, Attribute attribute) throws WrongAttributeValueException {
		if(attribute.getValue() == null) return;

		if (!perunSession.getPerunBl().getModulesUtilsBl().isFQDNValid(perunSession, attribute.valueAsString())) {
			throw new WrongAttributeValueException(attribute, resource, "Bad replicaDestination attribute format " + attribute.getValue() + ". It should be " +
					"fully qualified domain name.");
		}
	}

}