public final class Marshalling extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object[] |
convertParameters(Object[] _parameters,
Type[] _types,
AbstractConnection _conn)
Recursively converts types for serialization onto DBus.
|
static Object[] |
deSerializeParameters(Object[] _parameters,
Type[] _types,
AbstractConnection _conn) |
static String[] |
getDBusType(Type _javaType)
Will return the DBus type corresponding to the given Java type.
|
static String |
getDBusType(Type[] _javaType)
Will return the DBus type corresponding to the given Java type.
|
static String[] |
getDBusType(Type _dataType,
boolean _basic)
Will return the DBus type corresponding to the given Java type.
|
static int |
getJavaType(String _dbusType,
List<Type> _resultValue,
int _limit)
Converts a dbus type string into Java Type objects,
|
public static String getDBusType(Type[] _javaType) throws DBusException
_javaType - The Java types.DBusException - If the given type cannot be converted to a DBus type.public static String[] getDBusType(Type _javaType) throws DBusException
_javaType - The Java type.DBusException - If the given type cannot be converted to a DBus type.public static String[] getDBusType(Type _dataType, boolean _basic) throws DBusException
_dataType - The Java type._basic - If true enforces this to be a non-compound type. (compound types are Maps, Structs and Lists/arrays).DBusException - If the given type cannot be converted to a DBus type.public static int getJavaType(String _dbusType, List<Type> _resultValue, int _limit) throws DBusException
_dbusType - The DBus type or types._resultValue - List to return the types in._limit - Maximum number of types to parse (-1 == nolimit).DBusException - on errorpublic static Object[] convertParameters(Object[] _parameters, Type[] _types, AbstractConnection _conn) throws DBusException
_parameters - The parameters to convert._types - The (possibly generic) types of the parameters._conn - the connectionDBusException - Thrown if there is an error in converting the objects.Copyright © 2020. All rights reserved.