001 //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/branches/2.4_testing/src/org/deegree/portal/standard/csw/model/SessionRecord.java $
002 /*----------------------------------------------------------------------------
003 This file is part of deegree, http://deegree.org/
004 Copyright (C) 2001-2009 by:
005 Department of Geography, University of Bonn
006 and
007 lat/lon GmbH
008
009 This library is free software; you can redistribute it and/or modify it under
010 the terms of the GNU Lesser General Public License as published by the Free
011 Software Foundation; either version 2.1 of the License, or (at your option)
012 any later version.
013 This library is distributed in the hope that it will be useful, but WITHOUT
014 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
015 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
016 details.
017 You should have received a copy of the GNU Lesser General Public License
018 along with this library; if not, write to the Free Software Foundation, Inc.,
019 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020
021 Contact information:
022
023 lat/lon GmbH
024 Aennchenstr. 19, 53177 Bonn
025 Germany
026 http://lat-lon.de/
027
028 Department of Geography, University of Bonn
029 Prof. Dr. Klaus Greve
030 Postfach 1147, 53001 Bonn
031 Germany
032 http://www.geographie.uni-bonn.de/deegree/
033
034 e-mail: info@deegree.org
035 ----------------------------------------------------------------------------*/
036
037 package org.deegree.portal.standard.csw.model;
038
039 import java.io.Serializable;
040
041 /**
042 * A <code>${type_name}</code> class.<br/> TODO class description
043 *
044 * @author <a href="mailto:mays@lat-lon.de">Judit Mays</a>
045 * @author last edited by: $Author: mschneider $
046 *
047 * @version $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
048 */
049 public class SessionRecord implements Serializable {
050
051 private static final long serialVersionUID = 5434705327143566827L;
052
053 private String identifier;
054
055 private String catalogName;
056
057 private String title;
058
059 /**
060 * @param identifier
061 * @param catalogName
062 * @param title
063 */
064 public SessionRecord( String identifier, String catalogName, String title ) {
065
066 this.identifier = identifier;
067 this.catalogName = catalogName;
068 this.title = title;
069 }
070
071 /**
072 * @param sr
073 */
074 public SessionRecord( SessionRecord sr ) {
075 this.identifier = sr.getIdentifier();
076 this.catalogName = sr.getCatalogName();
077 this.title = sr.getTitle();
078 }
079
080 /*
081 * (non-Javadoc)
082 *
083 * @see java.lang.Object#equals(java.lang.Object)
084 */
085 @Override
086 public boolean equals( Object o ) {
087
088 if ( o == null || !( o instanceof SessionRecord ) ) {
089 return false;
090 }
091 SessionRecord sr = (SessionRecord) o;
092
093 if ( this.identifier.equals( sr.getIdentifier() )
094 && this.catalogName.equals( sr.getCatalogName() )
095 && this.title.equals( sr.getTitle() ) ) {
096
097 return true;
098 }
099 return false;
100 }
101
102 /**
103 * @return Returns the catalogName.
104 */
105 public String getCatalogName() {
106 return catalogName;
107 }
108
109 /**
110 * @param catalogName
111 * The catalogName to set.
112 */
113 public void setCatalogName( String catalogName ) {
114 this.catalogName = catalogName;
115 }
116
117 /**
118 * @return Returns the identifier.
119 */
120 public String getIdentifier() {
121 return identifier;
122 }
123
124 /**
125 * @param identifier
126 * The identifier to set.
127 */
128 public void setIdentifier( String identifier ) {
129 this.identifier = identifier;
130 }
131
132 /**
133 * @return Returns the title.
134 */
135 public String getTitle() {
136 return title;
137 }
138
139 /**
140 * @param title
141 * The title to set.
142 */
143 public void setTitle( String title ) {
144 this.title = title;
145 }
146
147 }