Top Description Fields Constructors Methods
org.freedesktop.dbus.utils

public final Class DBusNamingUtil

extends Object
Class Inheritance
Imports
org.freedesktop.dbus.annotations.DBusBoundProperty, .DBusInterfaceName, .DBusMemberName, java.lang.annotation.Annotation, java.lang.reflect.Method, java.util.Objects, java.util.regex.Pattern

DBus name Util class for internal and external use.

Field Summary

Modifier and TypeField and Description
private static final Pattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

interface name
getAnnotationName
(Class<? extends Annotation>
input DBus annotation
_clazz
)

Get DBus name for specified annotation class

public static String

Returns:

interface name
getInterfaceName
(Class<?>
input DBus interface class
_clazz
)

Get DBus interface name for specified interface class

public static String

Returns:

method name
getMethodName
(Method
input method
_method
)

Get DBus method name for specified method object.

public static String

Returns:

property name
getPropertyName
(Method
input method
_method
)

Get a property name for a method (annotated with DBusBoundProperty.

public static String

Returns:

signal name
getSignalName
(Class<?>
input DBus signal class
_clazz
)

Get DBus signal name for specified signal class.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DOLLAR_PATTERNback to summary
private static final Pattern DOLLAR_PATTERN

Constructor Detail

DBusNamingUtilback to summary
private DBusNamingUtil()

Method Detail

getAnnotationNameback to summary
public static String getAnnotationName(Class<? extends Annotation> _clazz)

Get DBus name for specified annotation class

Parameters
_clazz:Class<? extends Annotation>

input DBus annotation

Returns:String

interface name

See Also
DBusInterfaceName
getInterfaceNameback to summary
public static String getInterfaceName(Class<?> _clazz)

Get DBus interface name for specified interface class

Parameters
_clazz:Class<?>

input DBus interface class

Returns:String

interface name

See Also
DBusInterfaceName
getMethodNameback to summary
public static String getMethodName(Method _method)

Get DBus method name for specified method object.

Parameters
_method:Method

input method

Returns:String

method name

See Also
DBusMemberName
getPropertyNameback to summary
public static String getPropertyName(Method _method)

Get a property name for a method (annotated with DBusBoundProperty. These would typically be setter / getter type methods. If DBusBoundProperty#name() is provided, that will take precedence.

Parameters
_method:Method

input method

Returns:String

property name

See Also
DBusMemberName
getSignalNameback to summary
public static String getSignalName(Class<?> _clazz)

Get DBus signal name for specified signal class.

Parameters
_clazz:Class<?>

input DBus signal class

Returns:String

signal name

See Also
DBusMemberName