001/* 002 * (C) Copyright 2010 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * Jean-Marc Orliaguet, Chalmers 018 */ 019package org.nuxeo.theme.resources; 020 021public class PresetInfo { 022 023 private String name; 024 025 private String bank; 026 027 private String collection; 028 029 private String category; 030 031 private String value; 032 033 public PresetInfo(String name, String bank, String collection, String category, String value) { 034 this.name = name; 035 this.bank = bank; 036 this.collection = collection; 037 this.category = category; 038 this.value = value; 039 } 040 041 public String getName() { 042 return name; 043 } 044 045 public void setName(String name) { 046 this.name = name; 047 } 048 049 public String getBank() { 050 return bank; 051 } 052 053 public void setBank(String bank) { 054 this.bank = bank; 055 } 056 057 public String getCollection() { 058 return collection; 059 } 060 061 public void setCollection(String collection) { 062 this.collection = collection; 063 } 064 065 public String getCategory() { 066 return category; 067 } 068 069 public void setCategory(String category) { 070 this.category = category; 071 } 072 073 public String getValue() { 074 return value; 075 } 076 077 public void setValue(String value) { 078 this.value = value; 079 } 080 081 public String getTypeName() { 082 return String.format("%s (%s %s)", name, collection, category); 083 } 084 085}