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
7 import org.dom4j.Element;
8
9
10
11
12 public class DefaultWebSectionModuleDescriptor extends AbstractWebFragmentModuleDescriptor<Void> implements WebSectionModuleDescriptor<Void>
13 {
14 private String location;
15
16 public DefaultWebSectionModuleDescriptor(final WebInterfaceManager webInterfaceManager)
17 {
18 super(webInterfaceManager);
19 }
20
21 public DefaultWebSectionModuleDescriptor()
22 {
23
24 }
25
26 @Override
27 public void init(final Plugin plugin, final Element element) throws PluginParseException
28 {
29 super.init(plugin, element);
30
31 location = element.attributeValue("location");
32 }
33
34 public String getLocation()
35 {
36 return location;
37 }
38
39 @Override
40 public Class<Void> getModuleClass()
41 {
42 return Void.class;
43 }
44
45 @Override
46 public Void getModule()
47 {
48 return null;
49 }
50 }