Class XmlStreamingPlugin
java.lang.Object
de.haumacher.msgbuf.generator.plugins.XmlStreamingPlugin
- All Implemented Interfaces:
GeneratorPlugin
GeneratorPlugin generating XML reading code for the XMLStreamReader interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterfaces(Map<String, Option> options, MessageDef def, List<String> generalizations) Adds interfaces to the generated type.voidInitializes the plug-in with file options.messageImplContents(Map<String, Option> options, MessageDef def) Creates aFileGeneratorthat is expanded within the implementation class.messageInterfaceContents(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, waitMethods inherited from interface de.haumacher.msgbuf.generator.GeneratorPlugin
andThen
-
Constructor Details
-
XmlStreamingPlugin
public XmlStreamingPlugin()
-
-
Method Details
-
init
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
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
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
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.
-