001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.servicemix.jbi.deployment;
018
019 /**
020 * @version $Revision: 564374 $
021 */
022 public class SharedLibraryList {
023 private String version;
024 private String name;
025
026 public SharedLibraryList() {
027 }
028
029 public SharedLibraryList(String name) {
030 this.name = name;
031 }
032
033 public String getVersion() {
034 return version;
035 }
036
037 public void setVersion(String version) {
038 this.version = version;
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 boolean equals(Object o) {
050 if (this == o) {
051 return true;
052 }
053 if (!(o instanceof SharedLibraryList)) {
054 return false;
055 }
056
057 final SharedLibraryList sharedLibraryList = (SharedLibraryList) o;
058
059 if (name != null ? !name.equals(sharedLibraryList.name) : sharedLibraryList.name != null) {
060 return false;
061 }
062 if (version != null ? !version.equals(sharedLibraryList.version) : sharedLibraryList.version != null) {
063 return false;
064 }
065
066 return true;
067 }
068
069 public int hashCode() {
070 int result;
071 result = version != null ? version.hashCode() : 0;
072 result = 29 * result + name != null ? name.hashCode() : 0;
073 return result;
074 }
075
076 public String toString() {
077 return "SharedLibraryList[version=" + version + "; name=" + name + "]";
078 }
079
080 }