@@ -0,0 +1,2068 @@
+package org.verapdf.metadata.fixer.impl.pb;%0A%0Aimport org.apache.pdfbox.pdmodel.PDDocument;%0Aimport org.verapdf.metadata.fixer.entity.Metadata;%0Aimport org.verapdf.metadata.fixer.entity.PDFDocument;%0Aimport org.verapdf.metadata.fixer.impl.pb.model.PDFDocumentImpl;%0Aimport org.verapdf.metadata.fixer.utils.FixerConfig;%0Aimport org.verapdf.metadata.fixer.utils.parser.ProcessedObjectsParser;%0Aimport org.verapdf.metadata.fixer.utils.parser.XMLProcessedObjectsParser;%0Aimport org.verapdf.validation.profile.model.ValidationProfile;%0Aimport org.verapdf.validation.report.model.Result;%0Aimport org.verapdf.validation.report.model.ValidationInfo;%0A%0A/**%0A * @author Evgeniy Muravitskiy%0A */%0Apublic class FixerConfigImpl implements FixerConfig %7B%0A%0A%09private final PDFDocument document;%0A%09private final ValidationInfo validationResult;%0A%09private final ProcessedObjectsParser parser;%0A%0A%09public FixerConfigImpl(PDDocument document, ValidationInfo validationResult) %7B%0A%09%09this(document, validationResult, XMLProcessedObjectsParser.getInstance());%0A%09%7D%0A%0A%09public FixerConfigImpl(PDDocument document, ValidationInfo validationResult, ProcessedObjectsParser parser) %7B%0A%09%09if (document == null) %7B%0A%09%09%09throw new NullPointerException(%22Document can not be null%22);%0A%09%09%7D%0A%09%09if (validationResult == null) %7B%0A%09%09%09throw new NullPointerException(%22Validation infor can not be null.%22);%0A%09%09%7D%0A%09%09if (parser == null) %7B%0A%09%09%09throw new NullPointerException(%22Parser can not be null.%22);%0A%09%09%7D%0A%09%09this.document = new PDFDocumentImpl(document);%0A%09%09this.validationResult = validationResult;%0A%09%09this.parser = parser;%0A%09%7D%0A%0A%09@Override%0A%09public Result getValidationResult() %7B%0A%09%09return validationResult != null ? validationResult.getResult() : null;%0A%09%7D%0A%0A%09@Override%0A%09public ValidationProfile getValidationProfile() %7B%0A%09%09return validationResult == null ? null :%0A%09%09%09%09validationResult.getProfile().getValidationProfile();%0A%09%7D%0A%0A%09@Override%0A%09public Metadata getMetadata() %7B%0A%09%09return document.getMetadata();%0A%09%7D%0A%0A%09@Override%0A%09public PDFDocument getDocument() %7B%0A%09%09return document;%0A%09%7D%0A%0A%09@Override%0A%09public ProcessedObjectsParser getParser() %7B%0A%09%09return parser;%0A%09%7D%0A%0A%7D%0A

Implement metadata fixes configuration object