org.nerd4j.csv.conf.mapping.xml.XMLColumnConf 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 javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Backing bean that represents the XML configuration of the CSV column.
*
* @author Nerd4j Team
*/
@XmlType(name="column")
public class XMLColumnConf
{
/** The name of the column in the header. */
private String name;
/** The element of the model related to the column. */
private String mapping;
/** Tells if the column can have null
values. */
private Boolean optional;
/** The name to reference the processor to use to process the column data. */
private String processorRef;
/** The processor to use to process the column data. */
private XMLFieldProcessorConf processor;
/**
* Default constructor.
*
*/
public XMLColumnConf()
{
super();
this.name = null;
this.mapping = null;
this.optional = null;
this.processor = null;
this.processorRef = null;
}
/* ******************* */
/* GETTERS & SETTERS */
/* ******************* */
@XmlAttribute(name="name",required=true)
public String getName()
{
return name;
}
public void setName( String name )
{
this.name = name;
}
@XmlAttribute(name="mapping",required=false)
public String getMapping()
{
return mapping;
}
public void setMapping( String mapping )
{
this.mapping = mapping;
}
@XmlAttribute(name="optional",required=false)
public Boolean getOptional()
{
return optional;
}
public void setOptional( Boolean optional )
{
this.optional = optional;
}
@XmlAttribute(name="processor-ref",required=false)
public String getProcessorRef()
{
return processorRef;
}
public void setProcessorRef( String processorRef )
{
this.processorRef = processorRef;
}
@XmlElement(name="processor",required=false)
public XMLFieldProcessorConf getProcessor()
{
return processor;
}
public void setProcessor( XMLFieldProcessorConf processor )
{
this.processor = processor;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy