View Javadoc
1   package org.andromda.core.namespace;
2   
3   import java.net.URL;
4   
5   /**
6    * Represents the base plugin of AndroMDA. All Plugin instances inherit from this class.
7    *
8    * @author Chad Brandon
9    */
10  public abstract class BaseNamespaceComponent
11      implements NamespaceComponent
12  {
13      /**
14       * The namespace in which this component resides.
15       */
16      private String namespace;
17  
18      /**
19       * @see org.andromda.core.namespace.NamespaceComponent#setNamespace(String)
20       */
21      public void setNamespace(final String namespace)
22      {
23          this.namespace = namespace;
24      }
25  
26      /**
27       * @see org.andromda.core.namespace.NamespaceComponent#getNamespace()
28       */
29      public String getNamespace()
30      {
31          return this.namespace;
32      }
33  
34      /**
35       * The URL to the resource that configured this instance.
36       */
37      private URL resource;
38  
39      /**
40       * @see org.andromda.core.namespace.NamespaceComponent#getResource()
41       */
42      public URL getResource()
43      {
44          return this.resource;
45      }
46  
47      /**
48       * @see org.andromda.core.namespace.NamespaceComponent#setResource(java.net.URL)
49       */
50      public void setResource(final URL resource)
51      {
52          this.resource = resource;
53      }
54  }