1/*2 * Copyright 2001-2004 The Apache Software Foundation.3 *4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 *8 * http://www.apache.org/licenses/LICENSE-2.09 *10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */1617package org.apache.ws.scout.registry.infomodel;
1819import javax.xml.registry.infomodel.Key;
2021/**22 * Implements JAXR Interface.23 * For further details, look into the JAXR API Javadoc.24 *25 * @author Anil Saldhana <anil@apache.org>26 */27publicclassKeyImplimplements Key
28 {
29private String id;
3031publicKeyImpl()
32 {
33 }
3435publicKeyImpl(String id)
36 {
37this.id = id;
38 }
3940public String getId()
41 {
42return id;
43 }
4445publicvoid setId(String str)
46 {
47this.id = str;
48 }
4950publicboolean equals(Object o)
51 {
52if (this == o) returntrue;
53if (!(o instanceof KeyImpl)) return false;
54finalKeyImpl="../../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html#KeyImpl">KeyImpl key = (KeyImpl) o;
55if (id != null ? !id.equals(key.id) : key.id != null) return false;
56returntrue;
57 }
5859publicint hashCode()
60 {
61return (id != null ? id.hashCode() : 0);
62 }
6364public String toString()
65 {
66return id;
67 }
68 }