Class InterfaceCodeGenerator


  • public class InterfaceCodeGenerator
    extends Object
    Replacement for the old CreateInterface tool. This utility class will read introspection data from a given DBus interface and tries to generate proper Java interfaces.
    Since:
    v3.0.1 - 2018-12-20
    Author:
    hypfvieh
    • Constructor Detail

      • InterfaceCodeGenerator

        public InterfaceCodeGenerator​(String _introspectionData,
                                      String _objectPath,
                                      String _busName)
    • Method Detail

      • analyze

        public Map<File,​String> analyze​(boolean _ignoreDtd)
                                       throws Exception
        Analyze the DBus interface given in constructor by parsing the introspection data.
        Parameters:
        _ignoreDtd - true to disable dtd-validation, false otherwise
        Returns:
        List of Filenames and contents for the files
        Throws:
        Exception - on DBUS or IO errors
      • main

        public static void main​(String[] args)