Coverage Summary for Class: MappingFileConverter (org.kitodo.production.converter)
Class |
Class, %
|
Method, %
|
Line, %
|
MappingFileConverter |
0%
(0/1)
|
0%
(0/3)
|
0%
(0/3)
|
/*
* (c) Kitodo. Key to digital objects e. V. <contact@kitodo.org>
*
* This file is part of the Kitodo project.
*
* It is licensed under GNU General Public License version 3 or later.
*
* For the full copyright and license information, please read the
* GPL3-License.txt file that was distributed with this source code.
*/
package org.kitodo.production.converter;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.ConverterException;
import javax.inject.Named;
import org.kitodo.production.services.ServiceManager;
@Named
public class MappingFileConverter extends BeanConverter implements Converter {
@Override
public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value) throws ConverterException {
return getAsObject(ServiceManager.getMappingFileService(), value);
}
@Override
public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value) throws ConverterException {
return getAsString(value, "mappingFile");
}
}