1
2
3
4
5
6
7 package org.mule.config.spring.parsers.assembly.configuration;
8
9 public class SinglePropertyWrapper implements SingleProperty
10 {
11
12 private String oldName;
13 private PropertyConfiguration config;
14
15 public SinglePropertyWrapper(String oldName, PropertyConfiguration config)
16 {
17 this.oldName = oldName;
18 this.config = config;
19 }
20
21 public boolean isCollection()
22 {
23 return config.isCollection(oldName);
24 }
25
26 public void setCollection()
27 {
28 config.addCollection(oldName);
29 }
30
31 public boolean isIgnored()
32 {
33 return config.isIgnored(oldName);
34 }
35
36 public void setIgnored()
37 {
38 config.addIgnored(oldName);
39 }
40
41 public boolean isReference()
42 {
43 return config.isReference(oldName);
44 }
45
46 public void setReference()
47 {
48 config.addReference(oldName);
49 }
50
51 }