@@ -66,7 +66,7 @@ public class XmlFactory extends JsonFactory
66
66
67
67
protected String _cfgNameForTextElement ;
68
68
69
- protected XmlTagProcessor _tagProcessor ;
69
+ protected XmlNameProcessor _nameProcessor ;
70
70
71
71
/*
72
72
/**********************************************************
@@ -107,15 +107,15 @@ public XmlFactory(ObjectCodec oc, XMLInputFactory xmlIn, XMLOutputFactory xmlOut
107
107
public XmlFactory (ObjectCodec oc , int xpFeatures , int xgFeatures ,
108
108
XMLInputFactory xmlIn , XMLOutputFactory xmlOut ,
109
109
String nameForTextElem ) {
110
- this (oc , xpFeatures , xgFeatures , xmlIn , xmlOut , nameForTextElem , XmlTagProcessors .newPassthroughProcessor ());
110
+ this (oc , xpFeatures , xgFeatures , xmlIn , xmlOut , nameForTextElem , XmlNameProcessors .newPassthroughProcessor ());
111
111
}
112
112
113
113
protected XmlFactory (ObjectCodec oc , int xpFeatures , int xgFeatures ,
114
114
XMLInputFactory xmlIn , XMLOutputFactory xmlOut ,
115
- String nameForTextElem , XmlTagProcessor tagProcessor )
115
+ String nameForTextElem , XmlNameProcessor nameProcessor )
116
116
{
117
117
super (oc );
118
- _tagProcessor = tagProcessor ;
118
+ _nameProcessor = nameProcessor ;
119
119
_xmlParserFeatures = xpFeatures ;
120
120
_xmlGeneratorFeatures = xgFeatures ;
121
121
_cfgNameForTextElement = nameForTextElem ;
@@ -149,7 +149,7 @@ protected XmlFactory(XmlFactory src, ObjectCodec oc)
149
149
_cfgNameForTextElement = src ._cfgNameForTextElement ;
150
150
_xmlInputFactory = src ._xmlInputFactory ;
151
151
_xmlOutputFactory = src ._xmlOutputFactory ;
152
- _tagProcessor = src ._tagProcessor ;
152
+ _nameProcessor = src ._nameProcessor ;
153
153
}
154
154
155
155
/**
@@ -165,7 +165,7 @@ protected XmlFactory(XmlFactoryBuilder b)
165
165
_cfgNameForTextElement = b .nameForTextElement ();
166
166
_xmlInputFactory = b .xmlInputFactory ();
167
167
_xmlOutputFactory = b .xmlOutputFactory ();
168
- _tagProcessor = b .xmlTagProcessor ();
168
+ _nameProcessor = b .xmlTagProcessor ();
169
169
_initFactories (_xmlInputFactory , _xmlOutputFactory );
170
170
}
171
171
@@ -336,12 +336,12 @@ public int getFormatGeneratorFeatures() {
336
336
return _xmlGeneratorFeatures ;
337
337
}
338
338
339
- public XmlTagProcessor getXmlTagProcessor () {
340
- return _tagProcessor ;
339
+ public XmlNameProcessor getXmlTagProcessor () {
340
+ return _nameProcessor ;
341
341
}
342
342
343
- public void setXmlTagProcessor (XmlTagProcessor _tagProcessor ) {
344
- this . _tagProcessor = _tagProcessor ;
343
+ public void setXmlTagProcessor (XmlNameProcessor processor ) {
344
+ _nameProcessor = processor ;
345
345
}
346
346
347
347
/*
@@ -517,7 +517,7 @@ public ToXmlGenerator createGenerator(OutputStream out, JsonEncoding enc) throws
517
517
ctxt .setEncoding (enc );
518
518
return new ToXmlGenerator (ctxt ,
519
519
_generatorFeatures , _xmlGeneratorFeatures ,
520
- _objectCodec , _createXmlWriter (ctxt , out ), _tagProcessor );
520
+ _objectCodec , _createXmlWriter (ctxt , out ), _nameProcessor );
521
521
}
522
522
523
523
@ Override
@@ -526,7 +526,7 @@ public ToXmlGenerator createGenerator(Writer out) throws IOException
526
526
final IOContext ctxt = _createContext (_createContentReference (out ), false );
527
527
return new ToXmlGenerator (ctxt ,
528
528
_generatorFeatures , _xmlGeneratorFeatures ,
529
- _objectCodec , _createXmlWriter (ctxt , out ), _tagProcessor );
529
+ _objectCodec , _createXmlWriter (ctxt , out ), _nameProcessor );
530
530
}
531
531
532
532
@ SuppressWarnings ("resource" )
@@ -538,7 +538,7 @@ public ToXmlGenerator createGenerator(File f, JsonEncoding enc) throws IOExcepti
538
538
final IOContext ctxt = _createContext (_createContentReference (out ), true );
539
539
ctxt .setEncoding (enc );
540
540
return new ToXmlGenerator (ctxt , _generatorFeatures , _xmlGeneratorFeatures ,
541
- _objectCodec , _createXmlWriter (ctxt , out ), _tagProcessor );
541
+ _objectCodec , _createXmlWriter (ctxt , out ), _nameProcessor );
542
542
}
543
543
544
544
/*
@@ -562,7 +562,7 @@ public FromXmlParser createParser(XMLStreamReader sr) throws IOException
562
562
563
563
// false -> not managed
564
564
FromXmlParser xp = new FromXmlParser (_createContext (_createContentReference (sr ), false ),
565
- _parserFeatures , _xmlParserFeatures , _objectCodec , sr , _tagProcessor );
565
+ _parserFeatures , _xmlParserFeatures , _objectCodec , sr , _nameProcessor );
566
566
if (_cfgNameForTextElement != null ) {
567
567
xp .setXMLTextElementName (_cfgNameForTextElement );
568
568
}
@@ -581,7 +581,7 @@ public ToXmlGenerator createGenerator(XMLStreamWriter sw) throws IOException
581
581
sw = _initializeXmlWriter (sw );
582
582
IOContext ctxt = _createContext (_createContentReference (sw ), false );
583
583
return new ToXmlGenerator (ctxt , _generatorFeatures , _xmlGeneratorFeatures ,
584
- _objectCodec , sw , _tagProcessor );
584
+ _objectCodec , sw , _nameProcessor );
585
585
}
586
586
587
587
/*
@@ -601,7 +601,7 @@ protected FromXmlParser _createParser(InputStream in, IOContext ctxt) throws IOE
601
601
}
602
602
sr = _initializeXmlReader (sr );
603
603
FromXmlParser xp = new FromXmlParser (ctxt , _parserFeatures , _xmlParserFeatures ,
604
- _objectCodec , sr , _tagProcessor );
604
+ _objectCodec , sr , _nameProcessor );
605
605
if (_cfgNameForTextElement != null ) {
606
606
xp .setXMLTextElementName (_cfgNameForTextElement );
607
607
}
@@ -619,7 +619,7 @@ protected FromXmlParser _createParser(Reader r, IOContext ctxt) throws IOExcepti
619
619
}
620
620
sr = _initializeXmlReader (sr );
621
621
FromXmlParser xp = new FromXmlParser (ctxt , _parserFeatures , _xmlParserFeatures ,
622
- _objectCodec , sr , _tagProcessor );
622
+ _objectCodec , sr , _nameProcessor );
623
623
if (_cfgNameForTextElement != null ) {
624
624
xp .setXMLTextElementName (_cfgNameForTextElement );
625
625
}
@@ -646,7 +646,7 @@ protected FromXmlParser _createParser(char[] data, int offset, int len, IOContex
646
646
}
647
647
sr = _initializeXmlReader (sr );
648
648
FromXmlParser xp = new FromXmlParser (ctxt , _parserFeatures , _xmlParserFeatures ,
649
- _objectCodec , sr , _tagProcessor );
649
+ _objectCodec , sr , _nameProcessor );
650
650
if (_cfgNameForTextElement != null ) {
651
651
xp .setXMLTextElementName (_cfgNameForTextElement );
652
652
}
@@ -670,7 +670,7 @@ protected FromXmlParser _createParser(byte[] data, int offset, int len, IOContex
670
670
}
671
671
sr = _initializeXmlReader (sr );
672
672
FromXmlParser xp = new FromXmlParser (ctxt , _parserFeatures , _xmlParserFeatures ,
673
- _objectCodec , sr , _tagProcessor );
673
+ _objectCodec , sr , _nameProcessor );
674
674
if (_cfgNameForTextElement != null ) {
675
675
xp .setXMLTextElementName (_cfgNameForTextElement );
676
676
}
0 commit comments