All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nedap.archie.adl14.ADL2ConversionResultList Maven / Gradle / Ivy

There is a newer version: 3.12.0
Show newest version
package com.nedap.archie.adl14;

import com.nedap.archie.adl14.log.ADL2ConversionRunLog;

import java.util.ArrayList;
import java.util.List;

public class ADL2ConversionResultList {

    //TODO: should this contain an archetype repository as well?
    private List conversionResults = new ArrayList<>();
    private ADL2ConversionRunLog conversionLog = new ADL2ConversionRunLog();

    public List getConversionResults() {
        return conversionResults;
    }

    public void setConversionResults(List conversionResults) {
        this.conversionResults = conversionResults;
    }

    public ADL2ConversionRunLog getConversionLog() {
        return conversionLog;
    }

    public void setConversionLog(ADL2ConversionRunLog conversionLog) {
        this.conversionLog = conversionLog;
    }

    public void addConversionResult(ADL2ConversionResult result) {
        conversionResults.add(result);
        if(result.getArchetype() != null) {
            conversionLog.addLog(result.getArchetypeId(), result.getConversionLog());
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy