1 package com.atlassian.plugins.codegen.modules.common;
2
3 import java.util.HashMap;
4 import java.util.Map;
5
6
7
8
9 public class Resource
10 {
11 private String name;
12 private String type;
13 private String namePattern;
14 private String location;
15 private Map<String, String> params;
16 private boolean batch;
17
18 public Resource()
19 {
20 this.params = new HashMap<String, String>();
21 this.batch = true;
22 }
23
24 public String getName()
25 {
26 return name;
27 }
28
29 public void setName(String name)
30 {
31 this.name = name;
32 }
33
34 public String getType()
35 {
36 return type;
37 }
38
39 public void setType(String type)
40 {
41 this.type = type;
42 }
43
44 public String getNamePattern()
45 {
46 return namePattern;
47 }
48
49 public void setNamePattern(String namePattern)
50 {
51 this.namePattern = namePattern;
52 }
53
54 public String getLocation()
55 {
56 return location;
57 }
58
59 public void setLocation(String location)
60 {
61 this.location = location;
62 }
63
64 public Map<String, String> getParams()
65 {
66 return params;
67 }
68
69 public void setParams(Map<String, String> params)
70 {
71 this.params = params;
72 }
73
74 public void addParam(String name, String value)
75 {
76 params.put(name, value);
77 }
78
79 public boolean isBatch()
80 {
81 return batch;
82 }
83
84 public void setBatch(boolean batch)
85 {
86 this.batch = batch;
87 }
88 }