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 java.util.ArrayList;
20import java.util.Collection;
2122import javax.xml.registry.JAXRException;
23import javax.xml.registry.LifeCycleManager;
24import javax.xml.registry.infomodel.RegistryObject;
2526/**27 * Implements JAXR Interface.28 * For futher details, look into the JAXR API Javadoc.29 *30 * @author Anil Saldhana <anil@apache.org>31 */32publicclassExternalLinkImplextendsRegistryObjectImpl33implements javax.xml.registry.infomodel.ExternalLink
34 {
35private String uri = new String();
36privateboolean validateuri = false;
37private Collection<RegistryObject> linkedObj = new ArrayList<RegistryObject>();
3839/**40 * Creates a new instance of ExternalLinkImpl41 */42publicExternalLinkImpl(LifeCycleManager lifeCycleManager)
43 {
44super(lifeCycleManager);
45 }
4647public String getExternalURI() throws JAXRException
48 {
49return uri;
50 }
5152public Collection getLinkedObjects() throws JAXRException
53 {
54return linkedObj;
55 }
5657publicboolean getValidateURI() throws JAXRException
58 {
59return validateuri;
60 }
6162publicvoid setExternalURI(String str) throws JAXRException
63 {
64this.uri = str;
65 }
6667publicvoid setValidateURI(boolean param) throws JAXRException
68 {
69this.validateuri = param;
70 }
7172//Specific API73publicvoid addLinkedObject(RegistryObject obj)
74 {
75 linkedObj.add(obj);
76 }
7778publicvoid removeLinkedObject(RegistryObject obj)
79 {
80 linkedObj.remove(obj);
81 }
8283 }