View Javadoc
1   package com.atlassian.plugin.web.descriptors;
2   
3   import com.atlassian.plugin.Plugin;
4   import com.atlassian.plugin.PluginParseException;
5   import com.atlassian.plugin.web.WebInterfaceManager;
6   import org.dom4j.Element;
7   
8   /**
9    * Represents a web section - that is a collection of web items.
10   */
11  public class DefaultWebSectionModuleDescriptor extends AbstractWebFragmentModuleDescriptor<Void> implements WebSectionModuleDescriptor {
12      private String location;
13  
14      public DefaultWebSectionModuleDescriptor(final WebInterfaceManager webInterfaceManager) {
15          super(webInterfaceManager);
16      }
17  
18      public DefaultWebSectionModuleDescriptor() {
19  
20      }
21  
22      @Override
23      public void init(final Plugin plugin, final Element element) throws PluginParseException {
24          super.init(plugin, element);
25  
26          location = element.attributeValue("location");
27      }
28  
29      public String getLocation() {
30          return location;
31      }
32  
33      @Override
34      public Class<Void> getModuleClass() {
35          return Void.class;
36      }
37  
38      @Override
39      public Void getModule() {
40          return null;
41      }
42  }