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.List;
25
26
27
28
29 public class BehaviorImpl extends org.apache.myfaces.config.element.Behavior implements Serializable
30 {
31 private String behaviorClass;
32 private String behaviorId;
33
34 private List<AttributeImpl> attributes = new ArrayList<AttributeImpl>();
35 private List<PropertyImpl> properties = new ArrayList<PropertyImpl>();
36
37
38
39 public String getBehaviorClass()
40 {
41 return this.behaviorClass;
42 }
43
44 public String getBehaviorId()
45 {
46 return this.behaviorId;
47 }
48
49 public void setBehaviorClass (String behaviorClass)
50 {
51 this.behaviorClass = behaviorClass;
52 }
53
54 public void setBehaviorId (String behaviorId)
55 {
56 this.behaviorId = behaviorId;
57 }
58
59 public Collection<AttributeImpl> getAttributes ()
60 {
61 return attributes;
62 }
63
64 public void addAttribute (AttributeImpl attribute)
65 {
66 attributes.add (attribute);
67 }
68
69 public Collection<PropertyImpl> getProperties ()
70 {
71 return properties;
72 }
73
74 public void addProperty (PropertyImpl property)
75 {
76 properties.add (property);
77 }
78 }