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.JAXRException;
20import javax.xml.registry.LifeCycleManager;
21import javax.xml.registry.infomodel.ClassificationScheme;
22import javax.xml.registry.infomodel.InternationalString;
23import javax.xml.registry.infomodel.RegistryObject;
2425/**26 * Implements JAXR Interface.27 * For futher details, look into the JAXR API Javadoc.28 *29 * @author Anil Saldhana <anil@apache.org>30 */31publicclassExternalIdentifierImplextendsRegistryObjectImpl32implements javax.xml.registry.infomodel.ExternalIdentifier
33 {
3435private ClassificationScheme identity = newClassificationSchemeImpl(null);
36private String value = new String();
37private RegistryObject parent;
3839/**40 * Creates a new instance of ExternalIdentifierImpl41 */42publicExternalIdentifierImpl(LifeCycleManager lifeCycleManager)
43 {
44super(lifeCycleManager);
45 }
4647publicExternalIdentifierImpl(LifeCycleManager lifeCycleManager,
48 ClassificationScheme identity,
49 InternationalString name,
50 String value)
51 {
52super(lifeCycleManager, name);
53this.identity = identity;
54this.value = value;
55 }
5657public ClassificationScheme getIdentificationScheme()
58throws JAXRException
59 {
60return identity;
61 }
6263public RegistryObject getRegistryObject() throws JAXRException
64 {
65return parent;
66 }
6768public String getValue() throws JAXRException
69 {
70return value;
71 }
7273publicvoid setIdentificationScheme(ClassificationScheme cs)
74throws JAXRException
75 {
76 identity = cs;
77 }
7879publicvoid setValue(String str) throws JAXRException
80 {
81 value = str;
82 }
8384//Specific API85publicvoid setRegistryObject(RegistryObject obj)
86 {
87 parent = obj;
88 }
8990 }