1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.ws.scout.registry.infomodel;
18
19 import java.util.ArrayList;
20 import java.util.Collection;
21
22 import javax.xml.registry.JAXRException;
23 import javax.xml.registry.LifeCycleManager;
24 import javax.xml.registry.infomodel.RegistryObject;
25
26
27
28
29
30
31
32 public class ExternalLinkImpl extends RegistryObjectImpl
33 implements javax.xml.registry.infomodel.ExternalLink
34 {
35 private String uri = new String();
36 private boolean validateuri = false;
37 private Collection<RegistryObject> linkedObj = new ArrayList<RegistryObject>();
38
39
40
41
42 public ExternalLinkImpl(LifeCycleManager lifeCycleManager)
43 {
44 super(lifeCycleManager);
45 }
46
47 public String getExternalURI() throws JAXRException
48 {
49 return uri;
50 }
51
52 public Collection getLinkedObjects() throws JAXRException
53 {
54 return linkedObj;
55 }
56
57 public boolean getValidateURI() throws JAXRException
58 {
59 return validateuri;
60 }
61
62 public void setExternalURI(String str) throws JAXRException
63 {
64 this.uri = str;
65 }
66
67 public void setValidateURI(boolean param) throws JAXRException
68 {
69 this.validateuri = param;
70 }
71
72
73 public void addLinkedObject(RegistryObject obj)
74 {
75 linkedObj.add(obj);
76 }
77
78 public void removeLinkedObject(RegistryObject obj)
79 {
80 linkedObj.remove(obj);
81 }
82
83 }