org.nerd4j.csv.conf.mapping.xml.XMLConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nerd4j-csv Show documentation
Show all versions of nerd4j-csv Show documentation
CSV manipulation library.
/*
* #%L
* Nerd4j CSV
* %%
* Copyright (C) 2013 Nerd4j
* %%
* 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, either version 3 of the
* License, or (at your option) any later version.
*
* 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 General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
package org.nerd4j.csv.conf.mapping.xml;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* Backing bean that represents the XML global configuration.
*
* @author Nerd4j Team
*/
@XmlType(name="configuration")
@XmlRootElement(name="configuration")
public class XMLConfiguration
{
/** Configuration about registering items. */
private XMLRegisterConf register;
/** List of configured readers. */
private List parsers;
/** List of configured writers. */
private List formatters;
/** List of configured readers. */
private List readers;
/** List of configured writers. */
private List writers;
/**
* Default constructor.
*
*/
public XMLConfiguration()
{
super();
this.register = null;
this.readers = null;
this.writers = null;
this.parsers = null;
this.formatters = null;
}
/* ******************* */
/* GETTERS & SETTERS */
/* ******************* */
@XmlElement(name="register",required=false)
public XMLRegisterConf getRegister()
{
return register;
}
public void setRegister( XMLRegisterConf register )
{
this.register = register;
}
@XmlElement(name="reader",required=false)
public List getReaders()
{
return readers;
}
public void setReaders( List readers )
{
this.readers = readers;
}
@XmlElement(name="writer",required=false)
public List getWriters()
{
return writers;
}
public void setWriters( List writers )
{
this.writers = writers;
}
@XmlElement(name="parser",required=false)
public List getParsers()
{
return parsers;
}
public void setParsers( List parsers )
{
this.parsers = parsers;
}
@XmlElement(name="formatter",required=false)
public List getFormatters()
{
return formatters;
}
public void setFormatters( List formatters )
{
this.formatters = formatters;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy