1
2
3
4
5
6
7
8
9
10
11
12
13
14 package org.castor.xml;
15
16
17
18
19
20
21
22
23
24
25
26 public class UnmarshalListenerAdapter implements UnmarshalListener {
27
28
29
30
31 @SuppressWarnings("deprecation")
32 private org.exolab.castor.xml.UnmarshalListener _oldListener;
33
34 public UnmarshalListenerAdapter() {
35 super();
36 }
37
38
39
40
41
42
43 @SuppressWarnings("deprecation")
44 public void setOldListener(org.exolab.castor.xml.UnmarshalListener exolabListener) {
45 _oldListener = exolabListener;
46 }
47
48 @Override
49 @SuppressWarnings("deprecation")
50 public void attributesProcessed(final Object target, final Object parent) {
51 if (_oldListener != null) {
52 _oldListener.attributesProcessed(target);
53 }
54 }
55
56 @Override
57 @SuppressWarnings("deprecation")
58 public void fieldAdded(String fieldName, Object parent, Object child) {
59 if (_oldListener != null) {
60 _oldListener.fieldAdded(fieldName, parent, child);
61 }
62 }
63
64 @Override
65 @SuppressWarnings("deprecation")
66 public void initialized(Object target, Object parent) {
67 if (_oldListener != null) {
68 _oldListener.initialized(target);
69 }
70 }
71
72 @Override
73 @SuppressWarnings("deprecation")
74 public void unmarshalled(Object target, Object parent) {
75 if (_oldListener != null) {
76 _oldListener.unmarshalled(target);
77 }
78 }
79
80 }