001/* 002 * (C) Copyright 2006-2007 Nuxeo SAS <http://nuxeo.com> and others 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the Eclipse Public License v1.0 006 * which accompanies this distribution, and is available at 007 * http://www.eclipse.org/legal/epl-v10.html 008 * 009 * Contributors: 010 * Jean-Marc Orliaguet, Chalmers 011 * 012 * $Id$ 013 */ 014 015package org.nuxeo.theme; 016 017import org.nuxeo.common.xmap.annotation.XNode; 018import org.nuxeo.common.xmap.annotation.XObject; 019import org.nuxeo.theme.types.Type; 020import org.nuxeo.theme.types.TypeFamily; 021 022@XObject("registry") 023public class RegistryType implements Type { 024 025 @XNode("@name") 026 public String name; 027 028 @XNode("class") 029 public String className; 030 031 public RegistryType() { 032 } 033 034 public RegistryType(final String name, final String className) { 035 this.name = name; 036 this.className = className; 037 } 038 039 public String getName() { 040 return name; 041 } 042 043 public String getClassName() { 044 return className; 045 } 046 047 public TypeFamily getTypeFamily() { 048 return TypeFamily.REGISTRY; 049 } 050 051 public String getTypeName() { 052 return "registry"; 053 } 054 055 public void setClassName(final String className) { 056 this.className = className; 057 } 058 059 public void setName(final String name) { 060 this.name = name; 061 } 062 063}