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