001/*
002 * (C) Copyright 2012-2015 Nuxeo SA (http://nuxeo.com/) and contributors.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser General Public License
006 * (LGPL) version 2.1 which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/lgpl-2.1.html
008 *
009 * This library is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012 * Lesser General Public License for more details.
013 *
014 * Contributors:
015 *     mguillaume
016 */
017
018package org.nuxeo.launcher.info;
019
020import java.util.ArrayList;
021import java.util.List;
022
023import javax.xml.bind.annotation.XmlAccessType;
024import javax.xml.bind.annotation.XmlAccessorType;
025import javax.xml.bind.annotation.XmlElement;
026import javax.xml.bind.annotation.XmlElementWrapper;
027import javax.xml.bind.annotation.XmlRootElement;
028
029@XmlAccessorType(XmlAccessType.NONE)
030@XmlRootElement(name = "configuration")
031public class ConfigurationInfo {
032
033    public ConfigurationInfo() {
034    }
035
036    @XmlElement(name = "dbtemplate")
037    public String dbtemplate = "default";
038
039    @XmlElementWrapper(name = "basetemplates")
040    @XmlElement(name = "template")
041    public List<String> basetemplates = new ArrayList<>();
042
043    @XmlElementWrapper(name = "pkgtemplates")
044    @XmlElement(name = "template")
045    public List<String> pkgtemplates = new ArrayList<>();
046
047    @XmlElementWrapper(name = "usertemplates")
048    @XmlElement(name = "template")
049    public List<String> usertemplates = new ArrayList<>();
050
051    @XmlElementWrapper(name = "keyvals")
052    @XmlElement(name = "keyval")
053    public List<KeyValueInfo> keyvals = new ArrayList<>();
054
055}