001/* 002 * (C) Copyright 2006-2007 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 * <a href="mailto:ja@nuxeo.com">Julien Anguenot</a> 016 * 017 * $Id: ValidatorsRuleDescriptor.java 28476 2008-01-04 09:52:52Z sfermigier $ 018 */ 019 020package org.nuxeo.ecm.platform.publisher.rules; 021 022import org.nuxeo.common.xmap.annotation.XNode; 023import org.nuxeo.common.xmap.annotation.XObject; 024 025import java.io.Serializable; 026 027/** 028 * Validators rule descriptor. 029 * <p> 030 * Mostly references the underlying <code>ValidatorRule</code> implementation. It might be useful in the future to 031 * extend the members of this object to hold other information about the way we should apply this validator. 032 * (placefulness for instance). 033 * 034 * @author <a href="mailto:ja@nuxeo.com">Julien Anguenot</a> 035 */ 036@XObject("validatorsRule") 037public class ValidatorsRuleDescriptor implements Serializable { 038 039 private static final long serialVersionUID = 1L; 040 041 @XNode("@class") 042 protected Class<ValidatorsRule> klass; 043 044 @XNode("@name") 045 private String name; 046 047 public Class<ValidatorsRule> getKlass() { 048 return klass; 049 } 050 051 public String getName() { 052 return name; 053 } 054 055}