public class Validate extends Object
| Constructor and Description |
|---|
Validate() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
empty(Object object) |
static boolean |
empty(String object) |
static boolean |
executable(String path) |
static boolean |
isCommandExecutable(String command)
Find the executable by scanning the file system and the PATH.
|
static void |
isEmpty(Object object,
String message) |
static void |
isEmpty(String object,
String message) |
static void |
isExecutable(String path,
String message) |
static void |
isValidPath(String path,
String message) |
static void |
isValidUrl(String url,
String message) |
static void |
isValidUrl(URL url,
String message) |
static boolean |
nonEmpty(String object) |
public static boolean empty(Object object)
public static boolean empty(String object)
public static boolean nonEmpty(String object)
public static void isEmpty(Object object, String message) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void isEmpty(String object, String message) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void isValidPath(String path, String message) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void isValidUrl(URL url, String message) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void isValidUrl(String url, String message) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void isExecutable(String path, String message) throws IllegalArgumentException
IllegalArgumentExceptionpublic static boolean isCommandExecutable(String command) throws IllegalArgumentException
command - The name of the executable to findIllegalArgumentExceptionpublic static boolean executable(String path)
Copyright © 2021 JBoss by Red Hat. All rights reserved.