1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.directory.api.ldap.extras.controls.syncrepl_impl;
21
22
23 import org.apache.directory.api.asn1.ber.AbstractContainer;
24 import org.apache.directory.api.ldap.codec.api.LdapApiService;
25 import org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValue;
26
27
28
29
30
31
32
33
34 public class SyncDoneValueContainer extends AbstractContainer
35 {
36
37 private SyncDoneValue control;
38
39 private LdapApiService codec;
40
41
42
43
44
45
46
47 public SyncDoneValueContainer( LdapApiService codec )
48 {
49 super();
50 this.codec = codec;
51 this.control = new SyncDoneValueDecorator( codec );
52 grammar = SyncDoneValueGrammar.getInstance();
53 setTransition( SyncDoneValueStatesEnum.START_STATE );
54 }
55
56
57
58
59
60
61
62 public SyncDoneValueContainer( LdapApiService codec, SyncDoneValue control )
63 {
64 super();
65 this.codec = codec;
66 this.control = control;
67 grammar = SyncDoneValueGrammar.getInstance();
68 setTransition( SyncDoneValueStatesEnum.START_STATE );
69 }
70
71
72
73
74
75 public SyncDoneValue getSyncDoneValueControl()
76 {
77 return control;
78 }
79
80
81
82
83
84
85
86
87 public void setSyncDoneValueControl( SyncDoneValue control )
88 {
89 this.control = control;
90 }
91
92
93 public LdapApiService getCodecService()
94 {
95 return codec;
96 }
97
98
99
100
101
102 @Override
103 public void clean()
104 {
105 super.clean();
106 control = null;
107 }
108
109 }