1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
package org.apache.myfaces.config.impl.digester.elements; |
20 | |
|
21 | |
import java.io.Serializable; |
22 | |
import java.util.ArrayList; |
23 | |
import java.util.Collection; |
24 | |
import java.util.Collections; |
25 | |
import java.util.List; |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | 0 | public class ConverterImpl extends org.apache.myfaces.config.element.Converter implements Serializable |
32 | |
{ |
33 | |
|
34 | |
private String converterId; |
35 | |
private String forClass; |
36 | |
private String converterClass; |
37 | 0 | private List<org.apache.myfaces.config.element.Property> _properties = null; |
38 | 0 | private List<org.apache.myfaces.config.element.Attribute> _attributes = null; |
39 | |
|
40 | |
|
41 | |
public String getConverterId() |
42 | |
{ |
43 | 0 | return converterId; |
44 | |
} |
45 | |
|
46 | |
|
47 | |
public void setConverterId(String converterId) |
48 | |
{ |
49 | 0 | this.converterId = converterId; |
50 | 0 | } |
51 | |
|
52 | |
|
53 | |
public String getForClass() |
54 | |
{ |
55 | 0 | return forClass; |
56 | |
} |
57 | |
|
58 | |
|
59 | |
public void setForClass(String forClass) |
60 | |
{ |
61 | 0 | this.forClass = forClass; |
62 | 0 | } |
63 | |
|
64 | |
|
65 | |
public String getConverterClass() |
66 | |
{ |
67 | 0 | return converterClass; |
68 | |
} |
69 | |
|
70 | |
|
71 | |
public void setConverterClass(String converterClass) |
72 | |
{ |
73 | 0 | this.converterClass = converterClass; |
74 | 0 | } |
75 | |
|
76 | |
public void addProperty(org.apache.myfaces.config.element.Property value) |
77 | |
{ |
78 | 0 | if(_properties == null) |
79 | |
{ |
80 | 0 | _properties = new ArrayList<org.apache.myfaces.config.element.Property>(); |
81 | |
} |
82 | |
|
83 | 0 | _properties.add(value); |
84 | 0 | } |
85 | |
|
86 | |
public Collection<? extends org.apache.myfaces.config.element.Property> getProperties() |
87 | |
{ |
88 | 0 | if(_properties == null) |
89 | |
{ |
90 | 0 | return Collections.emptyList(); |
91 | |
} |
92 | |
|
93 | 0 | return _properties; |
94 | |
} |
95 | |
|
96 | |
public void addAttribute(org.apache.myfaces.config.element.Attribute value) |
97 | |
{ |
98 | 0 | if(_attributes == null) |
99 | |
{ |
100 | 0 | _attributes = new ArrayList<org.apache.myfaces.config.element.Attribute>(); |
101 | |
} |
102 | |
|
103 | 0 | _attributes.add(value); |
104 | 0 | } |
105 | |
|
106 | |
public Collection<? extends org.apache.myfaces.config.element.Attribute> getAttributes() |
107 | |
{ |
108 | 0 | if(_attributes == null) |
109 | |
{ |
110 | 0 | return Collections.emptyList(); |
111 | |
} |
112 | |
|
113 | 0 | return _attributes; |
114 | |
} |
115 | |
} |