View Javadoc

1   package com.atlassian.plugin.descriptors;
2   
3   public class UnrecognisedModuleDescriptor extends AbstractModuleDescriptor<Void>
4   {
5       private String errorText;
6   
7       @Override
8       public Void getModule()
9       {
10          return null;
11      }
12  
13      @Override
14      public boolean isEnabledByDefault()
15      {
16          //never enable a UnrecognisedModuleDescriptor
17          return false;
18      }
19  
20      public String getErrorText()
21      {
22          return errorText;
23      }
24  
25      public void setErrorText(final String errorText)
26      {
27          this.errorText = errorText;
28      }
29  
30      /**
31       * Sets the key of the ModuleDescriptor
32       *
33       * This is theoretically bad, as the superclass and the interface doesn't define this method,
34       * but it's required to construct an UnrecognisedModuleDescriptor when we don't have the XML Element.
35       *
36       * @param key the key of the ModuleDescriptor
37       */
38      public void setKey(final String key)
39      {
40          this.key = key;
41      }
42  
43      /**
44       * Sets the name of the ModuleDescriptor
45       *
46       * This is theoretically bad, as the superclass and the interface doesn't define this method,
47       * but it's required to construct an UnrecognisedModuleDescriptor when we don't have the XML Element.
48       *
49       * @param name the name of the ModuleDescriptor
50       */
51      public void setName(final String name)
52      {
53          this.name = name;
54      }
55  }