Interface ValueParameter<T>
- Type Parameters:
T- The type of object that is returned from theValueParserupon successful parsing.
- All Superinterfaces:
DefaultedRegistryValue<ValueParameter<?>>, ValueCompleter, ValueParser<T>, ValueUsage
- All Known Subinterfaces:
ResourceKeyedValueParameter<T>, ValueParameter.Simple<T>
public interface ValueParameter<T>
extends DefaultedRegistryValue<ValueParameter<?>>, ValueCompleter, ValueParser<T>, ValueUsage
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptiondefault ValueParameter<T> bind(RegistryHolder registryHolder) Creates a newValueCompleterthat is bound to a specificregistry holder.default StringGets the usage string for the parameter.Methods inherited from interface DefaultedRegistryValue
asDefaultedReference, findKey, keyMethods inherited from interface ValueCompleter
completeMethods inherited from interface ValueParser
clientCompletionType, parseValue
-
Method Details
-
usage
Description copied from interface:ValueUsageGets the usage string for the parameter.- Specified by:
usagein interfaceValueUsage- Parameters:
key- TheStringthat defines the parameter key- Returns:
- The usage
-
bind
Description copied from interface:ValueCompleterCreates a newValueCompleterthat is bound to a specificregistry holder.- Specified by:
bindin interfaceValueCompleter- Specified by:
bindin interfaceValueParser<T>- Parameters:
registryHolder- The owningregistry holder.- Returns:
- The bound
ValueCompleter.
-