001/*
002 * (C) Copyright 2006-2012 Nuxeo SAS (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.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 *     Nuxeo - initial API and implementation
016 *
017 * $Id$
018 */
019package org.nuxeo.ecm.platform.scanimporter.service;
020
021import java.io.Serializable;
022
023import org.nuxeo.common.xmap.annotation.XNode;
024import org.nuxeo.common.xmap.annotation.XObject;
025
026/**
027 * XMap descriptor for Blob mapping
028 *
029 * @author Thierry Delprat
030 */
031@XObject("blobMapping")
032public class ScanFileBlobMapping implements Serializable {
033
034    private static final long serialVersionUID = 1L;
035
036    @XNode("@sourceXPath")
037    protected String sourceXPath;
038
039    @XNode("@sourcePathAttribute")
040    protected String sourcePathAttribute;
041
042    @XNode("@sourceFilenameAttribute")
043    protected String sourceFilenameAttribute;
044
045    @XNode("@targetXPath")
046    protected String targetXPath;
047
048    public String getSourceXPath() {
049        return sourceXPath;
050    }
051
052    public String getTargetXPath() {
053        return targetXPath;
054    }
055
056    public String getSourcePathAttribute() {
057        return sourcePathAttribute;
058    }
059
060    public String getSourceFilenameAttribute() {
061        return sourceFilenameAttribute;
062    }
063
064}