1 package com.atlassian.plugins.codegen.modules;
2
3 import java.util.Properties;
4
5
6
7
8 public abstract class AbstractPluginModuleProperties extends Properties implements PluginModuleProperties
9 {
10
11 protected boolean includeExamples;
12 protected Properties i18nProperties;
13
14 protected AbstractPluginModuleProperties()
15 {
16 super();
17 i18nProperties = new Properties();
18 includeExamples = false;
19 setProductId("RefApp");
20 }
21
22 @Override
23 public void setProductId(String id)
24 {
25 setProperty(PRODUCT_ID, id);
26 }
27
28 @Override
29 public String getProductId()
30 {
31 return getProperty(PRODUCT_ID);
32 }
33
34 @Override
35 public void setIncludeExamples(boolean includeExamples)
36 {
37 this.includeExamples = includeExamples;
38 }
39
40 @Override
41 public boolean includeExamples()
42 {
43 return includeExamples;
44 }
45
46 @Override
47 public void addI18nProperty(String name, String value)
48 {
49 i18nProperties.setProperty(name, value);
50 }
51
52 @Override
53 public Properties getI18nProperties()
54 {
55 return i18nProperties;
56 }
57
58 }