PageRenderTime 25ms CodeModel.GetById 13ms app.highlight 7ms RepoModel.GetById 2ms app.codeStats 0ms

/plugin-module-codegen-engine/src/main/java/com/atlassian/plugins/codegen/modules/common/web/AbstractConditionsProperties.java

https://bitbucket.org/mmeinhold/amps
Java | 36 lines | 26 code | 7 blank | 3 comment | 0 complexity | 4e4bc4032cb6c414d40a2e0b3f42e400 MD5 | raw file
 1package com.atlassian.plugins.codegen.modules.common.web;
 2
 3import java.util.ArrayList;
 4import java.util.List;
 5
 6import com.atlassian.plugins.codegen.modules.BasicNameModuleProperties;
 7import com.atlassian.plugins.codegen.modules.common.Conditional;
 8
 9/**
10 * @since 3.6
11 */
12public abstract class AbstractConditionsProperties extends BasicNameModuleProperties
13{
14    public static final String CONDITIONS = "CONDITIONS";
15
16    public AbstractConditionsProperties()
17    {
18        this("My Web Module");
19    }
20
21    public AbstractConditionsProperties(String moduleName)
22    {
23        super(moduleName);
24        setConditions(new ArrayList<Conditional>());
25    }
26
27    public void setConditions(List<Conditional> conditions)
28    {
29        put(CONDITIONS, conditions);
30    }
31
32    public List<Conditional> getConditions()
33    {
34        return (List<Conditional>) get(CONDITIONS);
35    }
36}