io.legaldocml.business.util.AknReferences Maven / Gradle / Ivy
The newest version!
package io.legaldocml.business.util;
import io.legaldocml.akn.AknObject;
import io.legaldocml.akn.AkomaNtoso;
import io.legaldocml.akn.DocumentType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author Jacques Militello
*/
public final class AknReferences {
private static final Logger LOGGER = LoggerFactory.getLogger(AknReferences.class);
private AknReferences() {
}
public static void apply(AkomaNtoso akn, AknObject object, AknReference... refs) {
if (refs != null) {
for (AknReference ref : refs) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("accept [{}] to [{}]", ref, object);
}
ref.accept(object, akn);
}
}
}
}