001/*
002 * (C) Copyright 2006-2008 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 *     Alexandre Russel
016 *
017 * $Id$
018 */
019
020package org.nuxeo.ecm.diff.content.adapter;
021
022import org.nuxeo.common.xmap.annotation.XNode;
023import org.nuxeo.common.xmap.annotation.XObject;
024
025/**
026 * @author Antoine Taillefer
027 * @since 5.6
028 */
029@XObject("contentDiffer")
030public class MimeTypeContentDifferDescriptor {
031
032    /**
033     * @since 7.4
034     */
035    @XNode("@name")
036    private String name;
037
038    @XNode("pattern")
039    private String pattern;
040
041    @XNode("@class")
042    private Class<? extends MimeTypeContentDiffer> klass;
043
044    public String getName() {
045        return name;
046    }
047
048    public void setName(String name) {
049        this.name = name;
050    }
051
052    public String getPattern() {
053        return pattern;
054    }
055
056    public void setPattern(String pattern) {
057        this.pattern = pattern;
058    }
059
060    public Class<? extends MimeTypeContentDiffer> getKlass() {
061        return klass;
062    }
063
064    public void setKlass(Class<? extends MimeTypeContentDiffer> klass) {
065        this.klass = klass;
066    }
067
068}