org.freedesktop.dbus.TypeRef .
Usage:
@DBusInterfaceName("com.example.Bar")
@DBusProperty(name = "Name", type = String.class)
@DBusProperty(name = "ListOfVariables", type = List.class, access = Access.READ)
@DBusProperty(name = "MapOfStringList", type = ComplexTypeWithMapAndList.class, access = Access.READ)
public interface Bar extends DBusInterface {
// TypeRef allows to provide detailed information about type
interface ComplexTypeWithMapAndList extends TypeRef<Map<String, List<String>>> {
}
}
As an alternative to this annotation, you might consider using DBusBoundProperty. This
allows you to achieve the same results with less code.
org.freedesktop.dbus.interfaces.DBusInterface , org.freedesktop.dbus.annotations.DBusBoundProperty , org.freedesktop.dbus.TypeRef
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Method and Description |
|---|---|
| public DBusProperty. | |
| public PropertiesEmitsChangedSignal. | Returns: emitChangeSignal, never nullProperty which defines if a signal is emitted when the annotated property was changed. |
| public String | |
| public Class | Returns: typetype of the property, in case of complex types please create custom interface that extends |
| access | back to summary |
|---|---|
| public DBusProperty. Specifies the access type of this property.
| |
| emitChangeSignal | back to summary |
|---|---|
| public PropertiesEmitsChangedSignal. Property which defines if a signal is emitted when the annotated property was changed.
| |
| name | back to summary |
|---|---|
| public String name() Property name
| |
| type | back to summary |
|---|---|
| public Class type of the property, in case of complex types please create custom interface that extends
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| public static final DBusProperty. | |
| public static final DBusProperty. | |
| public static final DBusProperty. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public static DBusProperty. | |
| public static DBusProperty. |
| accessName | back to summary |
|---|---|
| private final String accessName | |
| READ | back to summary |
|---|---|
| public static final DBusProperty. | |
| READ_WRITE | back to summary |
|---|---|
| public static final DBusProperty. | |
| WRITE | back to summary |
|---|---|
| public static final DBusProperty. | |
| Access | back to summary |
|---|---|
| private Access(String _accessName) | |
| getAccessName | back to summary |
|---|---|
| public String getAccessName() | |
| valueOf | back to summary |
|---|---|
| public static DBusProperty. | |
| values | back to summary |
|---|---|
| public static DBusProperty. | |