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

top.marchand.xml.maven.catalog.model.CatalogModel Maven / Gradle / Ivy

Go to download

This plugin generates a OASIS catalog, which redirects all <artifactId>: URLs to appropriate jar

There is a newer version: 4.0.0
Show newest version
/*
 * 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