Enum Class ConnectionString.ParseMode
- All Implemented Interfaces:
Serializable, Comparable<ConnectionString.ParseMode>, Constable
- Enclosing class:
ConnectionString
Parse mode that defines which components are required.
- Since:
- 5.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic ConnectionString.ParseModeReturns the enum constant of this class with the specified name.static ConnectionString.ParseMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PATH
Require path and allow hosts. -
HOST
Require host and allow empty path.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
pathRequired
public boolean pathRequired()- Returns:
- Returns whether the path is required
-
hostRequired
public boolean hostRequired()- Returns:
- Returns whether at least one host is required
-