01: package org.andromda.core.namespace;
02:
03: import java.net.URL;
04:
05: /**
06: * Represents the base plugin of AndroMDA. All Plugin instances inherit from this class.
07: *
08: * @author Chad Brandon
09: */
10: public abstract class BaseNamespaceComponent implements
11: NamespaceComponent {
12: /**
13: * The namespace in which this component resides.
14: */
15: private String namespace;
16:
17: /**
18: * @see org.andromda.core.namespace.NamespaceComponent#setNamespace(java.lang.String)
19: */
20: public void setNamespace(final String namespace) {
21: this .namespace = namespace;
22: }
23:
24: /**
25: * @see org.andromda.core.namespace.NamespaceComponent#getNamespace()
26: */
27: public String getNamespace() {
28: return this .namespace;
29: }
30:
31: /**
32: * The URL to the resource that configured this instance.
33: */
34: private URL resource;
35:
36: /**
37: * @see org.andromda.core.namespace.NamespaceComponent#getResource()
38: */
39: public URL getResource() {
40: return this .resource;
41: }
42:
43: /**
44: * @see org.andromda.core.namespace.NamespaceComponent#setResource(java.net.URL)
45: */
46: public void setResource(final URL resource) {
47: this.resource = resource;
48: }
49: }
|