| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| private static final Pattern | |
| private static final int | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | ensurePublicInterfaces(Object
object to check _object)Ensures that all interfaces found on the given object a public accessable. |
| private static <T, exception type X extends DBusException> T | Returns: checked inputinput _input, Predicate<T> predicate for validation if value is not null or blank in case of string _validation, Function<String, X> function providing a new exception which will be thrown,
will receive _customMessage if given or string value of input _exSupplier, String custom exception message text, null to omit _customMessage)Basic checks of input (e.g. null checks). |
| public static String | Returns: input if validstring to check _busName)Ensures given string is a valid bus name. |
| public static String | Returns: input if validstring to check _busName, String custom exception message _customMessage)Ensures given string is a valid bus name. |
| public static String | Returns: input if validstring to check _busNameOrConnId)Ensures given string is a valid bus name or connection Id. |
| public static String | Returns: input if validstring to check _connId)Ensures given string is a valid connection Id. |
| public static Class | Returns: input if validclass to check _clz)Ensures that the given class is implements or extends |
| public static Class | Returns: input if validclass to check _clz, String custom error message _customMsg)Ensures that the given class is implements or extends |
| public static String | Returns: input if validstring to check _busName, String custom exception message _customMessage)Ensures given string is NOT a valid bus name. |
| public static < input type T, exception type to throw X extends Exception> T | Returns: input if not nullinput to validate _input, Supplier<X> supplier providing exception which will be thrown if input is null _exception)Ensure given value is not null. |
| public static String | Returns: input string if validstring to check _objectPath)Ensures given string is a valid object path. |
| public static DBusPath | Returns: input DBusPath if validto check _dbusPath)Ensures given DBusPath is a valid object path. |
| public static String | Returns: input string if validstring to check _objectPath, String custom error message _customMsg)Ensures given string is a valid object path. |
| public static DBusPath | Returns: input DBusPath if validto check _dbusPath, String custom error message _customMsg)Ensures given DBusPath is a valid object path. |
| public static Class | Returns: input if validclass to check _clz)Ensures that the given class is part of a package. |
| public static Class | Returns: input if validclass to check _clz, String custom error message _customMsg)Ensures that the given class is part of a package. |
| public static boolean | Returns: true if validinput to check _busName)Checks if input is valid bus name. |
| public static boolean | Returns: true if class has a packageclass to check _clz)Checks if given class has/is in a package. |
| public static boolean | Returns: true if validinput to check _connectionId)Checks if input is a valid connection Id. |
| public static boolean | Returns: true if class is compatibleclass to check _clz)Checks if given class is compatible with |
| public static boolean | Returns: true if invalidinput to check _busName)Checks if input is NOT a valid bus name. |
| public static boolean | Returns: true if invalidinput to check _connectionId)Checks if input is NOT a valid connection Id. |
| public static boolean | Returns: true if invalidinput to check _objectPath)Checks if input is NOT a valid object path. |
| public static boolean | Returns: true if validinput to check _objectPath)Checks if input is a valid object path. |
| BUSNAME_REGEX | back to summary |
|---|---|
| private static final Pattern BUSNAME_REGEX | |
| CONNID_REGEX | back to summary |
|---|---|
| private static final Pattern CONNID_REGEX | |
| MAX_NAME_LENGTH | back to summary |
|---|---|
| private static final int MAX_NAME_LENGTH | |
| OBJECT_REGEX_PATTERN | back to summary |
|---|---|
| private static final Pattern OBJECT_REGEX_PATTERN | |
| DBusObjects | back to summary |
|---|---|
| private DBusObjects() | |
| ensurePublicInterfaces | back to summary |
|---|---|
| public static void ensurePublicInterfaces(Object _object) throws InvalidInterfaceSignature Ensures that all interfaces found on the given object a public accessable.
| |
| requireBase | back to summary |
|---|---|
| private static <T, X extends DBusException> T requireBase(T _input, Predicate<T> _validation, Function<String, X> _exSupplier, String _customMessage) throws String-:X Basic checks of input (e.g. null checks).
| |
| requireBusName | back to summary |
|---|---|
| public static String requireBusName(String _busName) throws InvalidBusNameException Ensures given string is a valid bus name.
| |
| requireBusName | back to summary |
|---|---|
| public static String requireBusName(String _busName, String _customMessage) throws InvalidBusNameException Ensures given string is a valid bus name.
| |
| requireBusNameOrConnectionId | back to summary |
|---|---|
| public static String requireBusNameOrConnectionId(String _busNameOrConnId) throws InvalidBusNameException Ensures given string is a valid bus name or connection Id.
| |
| requireConnectionId | back to summary |
|---|---|
| public static String requireConnectionId(String _connId) throws InvalidBusNameException Ensures given string is a valid connection Id.
| |
| requireDBusInterface | back to summary |
|---|---|
| public static Class Ensures that the given class is implements or extends
| |
| requireDBusInterface | back to summary |
|---|---|
| public static Class Ensures that the given class is implements or extends
| |
| requireNotBusName | back to summary |
|---|---|
| public static String requireNotBusName(String _busName, String _customMessage) throws InvalidBusNameException Ensures given string is NOT a valid bus name.
| |
| requireNotNull | back to summary |
|---|---|
| public static <T, X extends Exception> T requireNotNull(T _input, Supplier<X> _exception) throws Supplier-:X Ensure given value is not null.
| |
| requireObjectPath | back to summary |
|---|---|
| public static String requireObjectPath(String _objectPath) throws InvalidObjectPathException Ensures given string is a valid object path.
| |
| requireObjectPath | back to summary |
|---|---|
| public static DBusPath requireObjectPath(DBusPath _dbusPath) throws InvalidObjectPathException Ensures given DBusPath is a valid object path.
| |
| requireObjectPath | back to summary |
|---|---|
| public static String requireObjectPath(String _objectPath, String _customMsg) throws InvalidObjectPathException Ensures given string is a valid object path.
| |
| requireObjectPath | back to summary |
|---|---|
| public static DBusPath requireObjectPath(DBusPath _dbusPath, String _customMsg) throws InvalidObjectPathException Ensures given DBusPath is a valid object path.
| |
| requirePackage | back to summary |
|---|---|
| public static Class Ensures that the given class is part of a package.
| |
| requirePackage | back to summary |
|---|---|
| public static Class Ensures that the given class is part of a package.
| |
| validateBusName | back to summary |
|---|---|
| public static boolean validateBusName(String _busName) Checks if input is valid bus name.
| |
| validateClassHasPackage | back to summary |
|---|---|
| public static boolean validateClassHasPackage(Class<?> _clz) Checks if given class has/is in a package.
| |
| validateConnectionId | back to summary |
|---|---|
| public static boolean validateConnectionId(String _connectionId) Checks if input is a valid connection Id.
| |
| validateDBusInterface | back to summary |
|---|---|
| public static boolean validateDBusInterface(Class<?> _clz) Checks if given class is compatible with
| |
| validateNotBusName | back to summary |
|---|---|
| public static boolean validateNotBusName(String _busName) Checks if input is NOT a valid bus name.
| |
| validateNotConnectionId | back to summary |
|---|---|
| public static boolean validateNotConnectionId(String _connectionId) Checks if input is NOT a valid connection Id.
| |
| validateNotObjectPath | back to summary |
|---|---|
| public static boolean validateNotObjectPath(String _objectPath) Checks if input is NOT a valid object path.
| |
| validateObjectPath | back to summary |
|---|---|
| public static boolean validateObjectPath(String _objectPath) Checks if input is a valid object path.
| |