top.marchand.xml.maven.catalog.model.CatalogModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of catalogBuilder-maven-plugin Show documentation
Show all versions of catalogBuilder-maven-plugin Show documentation
This plugin generates a OASIS catalog, which redirects all <artifactId>: URLs to appropriate jar
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package top.marchand.xml.maven.catalog.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author cmarchand
*/
public class CatalogModel implements Serializable {
private final List entries;
public CatalogModel() {
super();
entries = new ArrayList<>();
}
public List getEntries() {
return entries;
}
@Override
public String toString() {
return "CatalogModel{" + "entries=\n" + entries + '}';
}
public boolean containsUriStartPrefix(final String prefix) {
for(RewriteSystemModel rsm:entries) {
if(rsm.getUriStartPrefix().equals(prefix)) return true;
}
return false;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy