Class XmlStreamingPlugin
- java.lang.Object
-
- de.haumacher.msgbuf.generator.plugins.XmlStreamingPlugin
-
- All Implemented Interfaces:
GeneratorPlugin
public class XmlStreamingPlugin extends Object implements GeneratorPlugin
GeneratorPlugingenerating XML reading code for theXMLStreamReaderinterface.
-
-
Constructor Summary
Constructors Constructor Description XmlStreamingPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInterfaces(Map<String,Option> options, MessageDef def, List<String> generalizations)Adds interfaces to the generated type.voidinit(Map<String,Option> options)Initializes the plug-in with file options.FileGeneratormessageImplContents(Map<String,Option> options, MessageDef def)Creates aFileGeneratorthat is expanded within the implementation class.FileGeneratormessageInterfaceContents(Map<String,Option> options, MessageDef def)Creates aFileGeneratorthat is expanded within the interface class.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.haumacher.msgbuf.generator.GeneratorPlugin
andThen
-
-
-
-
Method Detail
-
init
public void init(Map<String,Option> options)
Description copied from interface:GeneratorPluginInitializes the plug-in with file options.- Specified by:
initin interfaceGeneratorPlugin- Parameters:
options- The options of the current file to translate.
-
addInterfaces
public void addInterfaces(Map<String,Option> options, MessageDef def, List<String> generalizations)
Description copied from interface:GeneratorPluginAdds interfaces to the generated type.- Specified by:
addInterfacesin interfaceGeneratorPlugin- Parameters:
options- The options from the top-level definition file.def- TheMessageDefthat is being translated.generalizations- The generalization list to extend.
-
messageInterfaceContents
public FileGenerator messageInterfaceContents(Map<String,Option> options, MessageDef def)
Description copied from interface:GeneratorPluginCreates aFileGeneratorthat is expanded within the interface class.- Specified by:
messageInterfaceContentsin interfaceGeneratorPlugin- Parameters:
options- The options from the top-level definition file.def- TheMessageDefthat is being translated.
-
messageImplContents
public FileGenerator messageImplContents(Map<String,Option> options, MessageDef def)
Description copied from interface:GeneratorPluginCreates aFileGeneratorthat is expanded within the implementation class.- Specified by:
messageImplContentsin interfaceGeneratorPlugin- Parameters:
options- The options from the top-level definition file.def- TheMessageDefthat is being translated.
-
-