Package org.freedesktop.dbus.messages
Class ExportedObject
- java.lang.Object
-
- org.freedesktop.dbus.messages.ExportedObject
-
public class ExportedObject extends Object
-
-
Constructor Summary
Constructors Constructor Description ExportedObject(DBusInterface _object, boolean _weakreferences)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgenerateAnnotationsXml(AnnotatedElement c)Generates the introspection data xml for annotationsprotected StringgenerateMethodsXml(Class<?> c)Generates the introspection data for the input interface methodsprotected StringgeneratePropertiesXml(Class<?> c)Generates the introspection data for the input interface properties.protected StringgeneratePropertyXml(DBusProperty property)Generates the introspection data for the single property.protected StringgenerateSignalsXml(Class<?> c)Generates the introspection data for the input interface signalsprotected Set<Class<?>>getDBusInterfaces(Class<?> inputClazz)Get all valid DBus interfaces which are implemented in a given class.StringgetIntrospectiondata()Map<MethodTuple,Method>getMethods()Reference<DBusInterface>getObject()
-
-
-
Constructor Detail
-
ExportedObject
public ExportedObject(DBusInterface _object, boolean _weakreferences) throws DBusException
- Throws:
DBusException
-
-
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 theDBusInterface.- Parameters:
inputClazz- input object class- Returns:
- set of DBus interfaces implements in the input class
-
getMethods
public Map<MethodTuple,Method> getMethods()
-
getObject
public Reference<DBusInterface> getObject()
-
getIntrospectiondata
public String getIntrospectiondata()
-
-