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.vocabularies; 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("vocabulary") 023public final class VocabularyType implements Type { 024 025 @XNode("@name") 026 public String name; 027 028 @XNode("class") 029 public String className; 030 031 @XNode("path") 032 public String path; 033 034 public VocabularyType() { 035 } 036 037 public VocabularyType(String name, String className, String path) { 038 this.name = name; 039 this.className = className; 040 this.path = path; 041 } 042 043 public TypeFamily getTypeFamily() { 044 return TypeFamily.VOCABULARY; 045 } 046 047 public String getTypeName() { 048 return name; 049 } 050 051 public String getClassName() { 052 return className; 053 } 054 055 public String getName() { 056 return name; 057 } 058 059 public String getPath() { 060 return path; 061 } 062 063}