1 20 21 package org.apache.directory.ldapstudio.dsmlv2; 22 23 24 import org.apache.directory.ldapstudio.dsmlv2.reponse.BatchResponse; 25 import org.apache.directory.ldapstudio.dsmlv2.request.BatchRequest; 26 import org.xmlpull.v1.XmlPullParser; 27 28 29 36 public class Dsmlv2Container implements Container 37 { 38 39 private int state; 40 41 42 private int transition; 43 44 45 private IStates states; 46 47 48 private XmlPullParser parser; 49 50 51 private BatchRequest batchRequest; 52 53 54 private BatchResponse batchResponse; 55 56 57 private AbstractGrammar grammar; 58 59 60 66 public BatchRequest getBatchRequest() 67 { 68 return batchRequest; 69 } 70 71 72 78 public void setBatchRequest( BatchRequest batchRequest ) 79 { 80 this.batchRequest = batchRequest; 81 } 82 83 84 90 public BatchResponse getBatchResponse() 91 { 92 return batchResponse; 93 } 94 95 96 102 public void setBatchResponse( BatchResponse batchResponse ) 103 { 104 this.batchResponse = batchResponse; 105 } 106 107 108 114 public XmlPullParser getParser() 115 { 116 return parser; 117 } 118 119 120 126 public void setParser( XmlPullParser parser ) 127 { 128 this.parser = parser; 129 } 130 131 132 138 public int getState() 139 { 140 return state; 141 } 142 143 144 150 public void setState( int state ) 151 { 152 this.state = state; 153 } 154 155 156 162 public int getTransition() 163 { 164 return transition; 165 } 166 167 168 174 public void setTransition( int transition ) 175 { 176 this.transition = transition; 177 } 178 179 180 186 public IStates getStates() 187 { 188 return states; 189 } 190 191 192 198 public AbstractGrammar getGrammar() 199 { 200 return grammar; 201 } 202 203 204 210 public void setGrammar( AbstractGrammar grammar ) 211 { 212 this.grammar = grammar; 213 } 214 215 216 226 public GrammarTransition getTransition( int state, Tag tag ) 227 { 228 return grammar.getTransition( state, tag ); 229 } 230 } 231 | Popular Tags |