com.github.jonasrutishauser.maven.plugin.bpmn.ReportConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bpmn-maven-plugin Show documentation
Show all versions of bpmn-maven-plugin Show documentation
Maven report which shows the projects BPMN, DMN and CMMN models
package com.github.jonasrutishauser.maven.plugin.bpmn;
/*
* Copyright (C) 2017 Jonas Rutishauser
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program.
* If not, see .
*/
import java.io.File;
import java.util.List;
import java.util.stream.Stream;
public class ReportConfiguration {
private final File basedir;
private final List bpmns;
private final List dmns;
private final List cmmns;
public ReportConfiguration(File basedir, List bpmns, List dmns, List cmmns) {
this.basedir = basedir;
this.bpmns = bpmns;
this.dmns = dmns;
this.cmmns = cmmns;
}
public boolean canGenerateReport() {
return hasBpmn() || hasDmn() || hasCmmn();
}
public boolean hasBpmn() {
return !bpmns.isEmpty();
}
public boolean hasDmn() {
return !dmns.isEmpty();
}
public boolean hasCmmn() {
return !cmmns.isEmpty();
}
public File getBasedir() {
return basedir;
}
public List getBpmns() {
return bpmns;
}
public List getDmns() {
return dmns;
}
public List getCmmns() {
return cmmns;
}
public Stream getModels() {
return Stream.concat(bpmns.stream(), Stream.concat(dmns.stream(), cmmns.stream()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy