|
8 | 8 | import tools.jackson.core.StreamReadConstraints;
|
9 | 9 | import tools.jackson.core.StreamWriteConstraints;
|
10 | 10 | import tools.jackson.core.base.DecorableTSFactory.DecorableTSFBuilder;
|
11 |
| -import tools.jackson.dataformat.xml.deser.FromXmlParser; |
12 |
| -import tools.jackson.dataformat.xml.ser.ToXmlGenerator; |
13 | 11 |
|
14 | 12 | /**
|
15 | 13 | * {@link tools.jackson.core.TSFBuilder}
|
@@ -162,65 +160,65 @@ public XmlNameProcessor xmlNameProcessor() {
|
162 | 160 |
|
163 | 161 | // // // Parser features
|
164 | 162 |
|
165 |
| - public XmlFactoryBuilder enable(FromXmlParser.Feature f) { |
| 163 | + public XmlFactoryBuilder enable(XmlReadFeature f) { |
166 | 164 | _formatParserFeatures |= f.getMask();
|
167 | 165 | return _this();
|
168 | 166 | }
|
169 | 167 |
|
170 |
| - public XmlFactoryBuilder enable(FromXmlParser.Feature first, FromXmlParser.Feature... other) { |
| 168 | + public XmlFactoryBuilder enable(XmlReadFeature first, XmlReadFeature... other) { |
171 | 169 | _formatParserFeatures |= first.getMask();
|
172 |
| - for (FromXmlParser.Feature f : other) { |
| 170 | + for (XmlReadFeature f : other) { |
173 | 171 | _formatParserFeatures |= f.getMask();
|
174 | 172 | }
|
175 | 173 | return _this();
|
176 | 174 | }
|
177 | 175 |
|
178 |
| - public XmlFactoryBuilder disable(FromXmlParser.Feature f) { |
| 176 | + public XmlFactoryBuilder disable(XmlReadFeature f) { |
179 | 177 | _formatParserFeatures &= ~f.getMask();
|
180 | 178 | return _this();
|
181 | 179 | }
|
182 | 180 |
|
183 |
| - public XmlFactoryBuilder disable(FromXmlParser.Feature first, FromXmlParser.Feature... other) { |
| 181 | + public XmlFactoryBuilder disable(XmlReadFeature first, XmlReadFeature... other) { |
184 | 182 | _formatParserFeatures &= ~first.getMask();
|
185 |
| - for (FromXmlParser.Feature f : other) { |
| 183 | + for (XmlReadFeature f : other) { |
186 | 184 | _formatParserFeatures &= ~f.getMask();
|
187 | 185 | }
|
188 | 186 | return _this();
|
189 | 187 | }
|
190 | 188 |
|
191 |
| - public XmlFactoryBuilder configure(FromXmlParser.Feature f, boolean state) { |
| 189 | + public XmlFactoryBuilder configure(XmlReadFeature f, boolean state) { |
192 | 190 | return state ? enable(f) : disable(f);
|
193 | 191 | }
|
194 | 192 |
|
195 | 193 | // // // Generator features
|
196 | 194 |
|
197 |
| - public XmlFactoryBuilder enable(ToXmlGenerator.Feature f) { |
| 195 | + public XmlFactoryBuilder enable(XmlWriteFeature f) { |
198 | 196 | _formatGeneratorFeatures |= f.getMask();
|
199 | 197 | return _this();
|
200 | 198 | }
|
201 | 199 |
|
202 |
| - public XmlFactoryBuilder enable(ToXmlGenerator.Feature first, ToXmlGenerator.Feature... other) { |
| 200 | + public XmlFactoryBuilder enable(XmlWriteFeature first, XmlWriteFeature... other) { |
203 | 201 | _formatGeneratorFeatures |= first.getMask();
|
204 |
| - for (ToXmlGenerator.Feature f : other) { |
| 202 | + for (XmlWriteFeature f : other) { |
205 | 203 | _formatGeneratorFeatures |= f.getMask();
|
206 | 204 | }
|
207 | 205 | return _this();
|
208 | 206 | }
|
209 | 207 |
|
210 |
| - public XmlFactoryBuilder disable(ToXmlGenerator.Feature f) { |
| 208 | + public XmlFactoryBuilder disable(XmlWriteFeature f) { |
211 | 209 | _formatGeneratorFeatures &= ~f.getMask();
|
212 | 210 | return _this();
|
213 | 211 | }
|
214 | 212 |
|
215 |
| - public XmlFactoryBuilder disable(ToXmlGenerator.Feature first, ToXmlGenerator.Feature... other) { |
| 213 | + public XmlFactoryBuilder disable(XmlWriteFeature first, XmlWriteFeature... other) { |
216 | 214 | _formatGeneratorFeatures &= ~first.getMask();
|
217 |
| - for (ToXmlGenerator.Feature f : other) { |
| 215 | + for (XmlWriteFeature f : other) { |
218 | 216 | _formatGeneratorFeatures &= ~f.getMask();
|
219 | 217 | }
|
220 | 218 | return _this();
|
221 | 219 | }
|
222 | 220 |
|
223 |
| - public XmlFactoryBuilder configure(ToXmlGenerator.Feature f, boolean state) { |
| 221 | + public XmlFactoryBuilder configure(XmlWriteFeature f, boolean state) { |
224 | 222 | return state ? enable(f) : disable(f);
|
225 | 223 | }
|
226 | 224 |
|
|
0 commit comments