Class ExportedObject
java.lang.Object
org.freedesktop.dbus.messages.ExportedObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGenerates the introspection data xml for annotationsprotected StringgenerateMethodsXml(Class<?> _clz) Generates the introspection data for the input interface methodsprotected StringgeneratePropertiesXml(Class<?> _clz) Generates the introspection data for the input interface properties.protected StringgeneratePropertyXml(String _propertyName, Class<?> _propertyTypeClass, DBusProperty.Access _access, PropertiesEmitsChangedSignal.EmitChangeSignal _emitChangeSignal) Generates the introspection data for the single property.protected StringgeneratePropertyXml(DBusProperty _property) Generates the introspection data for the single property.protected StringgenerateSignalsXml(Class<?> _clz) Generates the introspection data for the input interface signalsgetDBusInterfaces(Class<?> _inputClazz) Get all valid DBus interfaces which are implemented in a given class.static booleanisExcluded(Method _meth) toString()
-
Constructor Details
-
ExportedObject
- Throws:
DBusException
-
-
Method Details
-
generateAnnotationsXml
Generates the introspection data xml for annotations- Parameters:
_c- input interface/method/signal- Returns:
- xml with annotation definition
-
generatePropertyXml
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
-
generatePropertyXml
protected String generatePropertyXml(String _propertyName, Class<?> _propertyTypeClass, DBusProperty.Access _access, PropertiesEmitsChangedSignal.EmitChangeSignal _emitChangeSignal) throws DBusException Generates the introspection data for the single property.- Parameters:
_propertyName- name_propertyTypeClass- type class_access- type access- Returns:
- xml with property definition
- Throws:
DBusException- in case of unknown data types
-
generatePropertiesXml
Generates the introspection data for the input interface properties.- Parameters:
_clz- input interface- Returns:
- xml with property definitions
- Throws:
DBusException- in case of unknown data types
-
generateMethodsXml
Generates the introspection data for the input interface methods- Parameters:
_clz- input interface- Returns:
- xml with method definitions
- Throws:
DBusException- if marshalling fails
-
generateSignalsXml
Generates the introspection data for the input interface signals- Parameters:
_clz- input interface- Returns:
- xml with signal definitions
- Throws:
DBusException- in case of invalid signal name / data types
-
getDBusInterfaces
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
-
getPropertyMethods
-
getObject
-
getIntrospectiondata
-
getImplementedInterfaces
-
toString
-
isExcluded
-