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 | 0 | { |
17 | 0 | this.oldName = oldName; |
18 | 0 | this.config = config; |
19 | 0 | } |
20 | |
|
21 | |
public boolean isCollection() |
22 | |
{ |
23 | 0 | return config.isCollection(oldName); |
24 | |
} |
25 | |
|
26 | |
public void setCollection() |
27 | |
{ |
28 | 0 | config.addCollection(oldName); |
29 | 0 | } |
30 | |
|
31 | |
public boolean isIgnored() |
32 | |
{ |
33 | 0 | return config.isIgnored(oldName); |
34 | |
} |
35 | |
|
36 | |
public void setIgnored() |
37 | |
{ |
38 | 0 | config.addIgnored(oldName); |
39 | 0 | } |
40 | |
|
41 | |
public boolean isReference() |
42 | |
{ |
43 | 0 | return config.isReference(oldName); |
44 | |
} |
45 | |
|
46 | |
public void setReference() |
47 | |
{ |
48 | 0 | config.addReference(oldName); |
49 | 0 | } |
50 | |
|
51 | |
} |