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 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 private List<org.apache.myfaces.config.element.Property> _properties = null;
38 private List<org.apache.myfaces.config.element.Attribute> _attributes = null;
39
40
41 public String getConverterId()
42 {
43 return converterId;
44 }
45
46
47 public void setConverterId(String converterId)
48 {
49 this.converterId = converterId;
50 }
51
52
53 public String getForClass()
54 {
55 return forClass;
56 }
57
58
59 public void setForClass(String forClass)
60 {
61 this.forClass = forClass;
62 }
63
64
65 public String getConverterClass()
66 {
67 return converterClass;
68 }
69
70
71 public void setConverterClass(String converterClass)
72 {
73 this.converterClass = converterClass;
74 }
75
76 public void addProperty(org.apache.myfaces.config.element.Property value)
77 {
78 if(_properties == null)
79 {
80 _properties = new ArrayList<org.apache.myfaces.config.element.Property>();
81 }
82
83 _properties.add(value);
84 }
85
86 public Collection<? extends org.apache.myfaces.config.element.Property> getProperties()
87 {
88 if(_properties == null)
89 {
90 return Collections.emptyList();
91 }
92
93 return _properties;
94 }
95
96 public void addAttribute(org.apache.myfaces.config.element.Attribute value)
97 {
98 if(_attributes == null)
99 {
100 _attributes = new ArrayList<org.apache.myfaces.config.element.Attribute>();
101 }
102
103 _attributes.add(value);
104 }
105
106 public Collection<? extends org.apache.myfaces.config.element.Attribute> getAttributes()
107 {
108 if(_attributes == null)
109 {
110 return Collections.emptyList();
111 }
112
113 return _attributes;
114 }
115 }