001/* 002 * #%L 003 * Netarchivesuite - harvester 004 * %% 005 * Copyright (C) 2005 - 2014 The Royal Danish Library, the Danish State and University Library, 006 * the National Library of France and the Austrian National Library. 007 * %% 008 * This program is free software: you can redistribute it and/or modify 009 * it under the terms of the GNU Lesser General Public License as 010 * published by the Free Software Foundation, either version 2.1 of the 011 * License, or (at your option) any later version. 012 * 013 * This program is distributed in the hope that it will be useful, 014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 016 * GNU General Lesser Public License for more details. 017 * 018 * You should have received a copy of the GNU General Lesser Public 019 * License along with this program. If not, see 020 * <http://www.gnu.org/licenses/lgpl-2.1.html>. 021 * #L% 022 */ 023 024package dk.netarkivet.harvester.datamodel.extendedfield; 025 026import java.io.Serializable; 027 028/** 029 * This class represents one Extended Field Type. 030 */ 031@SuppressWarnings({"serial"}) 032public class ExtendedFieldType implements Serializable { 033 034 /** The id of this ExtendedFieldType. */ 035 private Long extendedFieldTypeID; 036 /** The name of this ExtendedFieldType. */ 037 private String name; 038 039 /** 040 * Constructor. TODO Add validation 041 * 042 * @param aExtendedFieldTypeID The id of this ExtendedFieldType. 043 * @param aName The name of this ExtendedFieldType. 044 */ 045 ExtendedFieldType(Long aExtendedFieldTypeID, String aName) { 046 extendedFieldTypeID = aExtendedFieldTypeID; 047 name = aName; 048 } 049 050 /** 051 * @return id of this ExtendedFieldType. 052 */ 053 public Long getExtendedFieldTypeID() { 054 return extendedFieldTypeID; 055 } 056 057 /** 058 * Set the id of this ExtendedFieldType. 059 * 060 * @param extendedFieldTypeID the id of this ExtendedFieldType 061 */ 062 public void setExtendedFieldTypeID(Long extendedFieldTypeID) { 063 this.extendedFieldTypeID = extendedFieldTypeID; 064 } 065 066 /** 067 * @return the name of this ExtendedFieldType. 068 */ 069 public String getName() { 070 return name; 071 } 072 073 /** 074 * Set the name of this ExtendedFieldType. 075 * 076 * @param name the name of this ExtendedFieldType. 077 */ 078 public void setName(String name) { 079 this.name = name; 080 } 081 082}