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

com.github.loicoudot.java4cpp.configuration.Wrappes Maven / Gradle / Ivy

package com.github.loicoudot.java4cpp.configuration;

import static com.github.loicoudot.java4cpp.Utils.newArrayList;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;

public final class Wrappes {

    private final List wrappes = newArrayList();
    private final List noWrappes = newArrayList();

    Wrappes() {
    }

    @XmlElementWrapper
    @XmlElement(name = "wrappe")
    public List getWrappes() {
        return wrappes;
    }

    @XmlElementWrapper
    @XmlElement(name = "noWrappe")
    public List getNoWrappes() {
        return noWrappes;
    }

    public Wrappe findWrappe(String name) {
        for (Wrappe wrappe : getWrappes()) {
            if (wrappe.getName().equals(name)) {
                return wrappe;
            }
        }
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy