Interface Connector.SelectedArgument
- All Superinterfaces:
Connector.Argument, Serializable
- Enclosing interface:
Connector
public static interface Connector.SelectedArgument extends Connector.Argument
Specification for and value of a Connector argument, whose value is a String selected from a list of choices.
- Since:
- 1.3
Method Summary
Methods declared in interface Connector.Argument
description, label, mustSpecify, name, setValue, value | Modifier and Type | Method | Description |
|---|---|---|
String |
description() |
Returns a human-readable description of this argument and its purpose. |
String |
label() |
Returns a short human-readable label for this argument. |
boolean |
mustSpecify() |
Indicates whether the argument must be specified. |
String |
name() |
Returns a short, unique identifier for the argument. |
void |
setValue |
Sets the value of the argument. |
String |
value() |
Returns the current value of the argument. |
Method Details
choices
isValid
boolean isValid(String value)
Performs basic sanity check of argument.
- Specified by:
-
isValidin interfaceConnector.Argument - Returns:
-
trueif value is one ofchoices().
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.