Class ExportedObject


  • public class ExportedObject
    extends Object
    • Method Detail

      • generateAnnotationsXml

        protected String generateAnnotationsXml​(AnnotatedElement c)
        Generates the introspection data xml for annotations
        Parameters:
        c - input interface/method/signal
        Returns:
        xml with annotation definition
      • generatePropertyXml

        protected String generatePropertyXml​(DBusProperty property)
                                      throws DBusException
        Generates the introspection data for the single property.
        Parameters:
        property - input property annotation
        Returns:
        xml with property definition
        Throws:
        DBusException - in case of unknown data types
      • generatePropertiesXml

        protected String generatePropertiesXml​(Class<?> c)
                                        throws DBusException
        Generates the introspection data for the input interface properties.
        Parameters:
        c - input interface
        Returns:
        xml with property definitions
        Throws:
        DBusException - in case of unknown data types
      • generateMethodsXml

        protected String generateMethodsXml​(Class<?> c)
                                     throws DBusException
        Generates the introspection data for the input interface methods
        Parameters:
        c - input interface
        Returns:
        xml with method definitions
        Throws:
        DBusException - if marshalling fails
      • generateSignalsXml

        protected String generateSignalsXml​(Class<?> c)
                                     throws DBusException
        Generates the introspection data for the input interface signals
        Parameters:
        c - input interface
        Returns:
        xml with signal definitions
        Throws:
        DBusException - in case of invalid signal name / data types
      • getDBusInterfaces

        protected Set<Class<?>> getDBusInterfaces​(Class<?> inputClazz)
        Get all valid DBus interfaces which are implemented in a given class. The search is performed without recursion taking into account object inheritance. A valid DBus interface must directly extend the DBusInterface.
        Parameters:
        inputClazz - input object class
        Returns:
        set of DBus interfaces implements in the input class
      • getIntrospectiondata

        public String getIntrospectiondata()