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 | 0 | private String uri = new String(); |
36 | 0 | private boolean validateuri = false; |
37 | 0 | private Collection<RegistryObject> linkedObj = new ArrayList<RegistryObject>(); |
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
public ExternalLinkImpl(LifeCycleManager lifeCycleManager) |
43 | |
{ |
44 | 0 | super(lifeCycleManager); |
45 | 0 | } |
46 | |
|
47 | |
public String getExternalURI() throws JAXRException |
48 | |
{ |
49 | 0 | return uri; |
50 | |
} |
51 | |
|
52 | |
public Collection getLinkedObjects() throws JAXRException |
53 | |
{ |
54 | 0 | return linkedObj; |
55 | |
} |
56 | |
|
57 | |
public boolean getValidateURI() throws JAXRException |
58 | |
{ |
59 | 0 | return validateuri; |
60 | |
} |
61 | |
|
62 | |
public void setExternalURI(String str) throws JAXRException |
63 | |
{ |
64 | 0 | this.uri = str; |
65 | 0 | } |
66 | |
|
67 | |
public void setValidateURI(boolean param) throws JAXRException |
68 | |
{ |
69 | 0 | this.validateuri = param; |
70 | 0 | } |
71 | |
|
72 | |
|
73 | |
public void addLinkedObject(RegistryObject obj) |
74 | |
{ |
75 | 0 | linkedObj.add(obj); |
76 | 0 | } |
77 | |
|
78 | |
public void removeLinkedObject(RegistryObject obj) |
79 | |
{ |
80 | 0 | linkedObj.remove(obj); |
81 | 0 | } |
82 | |
|
83 | |
} |