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.templates; 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("template-engine") 023public final class TemplateEngineType implements Type { 024 025 @XNode("@name") 026 public String name; 027 028 @XNode("@title") 029 public String title; 030 031 @XNode("@template-view") 032 public String templateView = "org.nuxeo.theme.views.TemplateView"; 033 034 public String getTypeName() { 035 return name; 036 } 037 038 public TypeFamily getTypeFamily() { 039 return TypeFamily.TEMPLATE_ENGINE; 040 } 041 042 public String getName() { 043 return name; 044 } 045 046 public void setName(String name) { 047 this.name = name; 048 } 049 050 public String getTitle() { 051 return title; 052 } 053 054 public void setTitle(String title) { 055 this.title = title; 056 } 057 058 public String getTemplateView() { 059 return templateView; 060 } 061 062 public void setTemplateView(String templateView) { 063 this.templateView = templateView; 064 } 065 066}