Class PathMatcherValueHandler
java.lang.Object
org.tquadrat.foundation.config.cli.CmdLineValueHandler<PathMatcher>
org.tquadrat.foundation.config.cli.PathMatcherValueHandler
@ClassVersion(sourceVersion="$Id: PathMatcherValueHandler.java 1231 2026-05-05 14:28:23Z tquadrat $")
@API(status=STABLE,
since="0.25.5")
public final class PathMatcherValueHandler
extends CmdLineValueHandler<PathMatcher>
This class is an implementation of
CmdLineValueHandler
for
PathMatcher.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: PathMatcherValueHandler.java 1231 2026-05-05 14:28:23Z tquadrat $
- Since:
- 0.1.0
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.config.cli.PathMatcherValueHandler"
-
Field Summary
Fields inherited from class CmdLineValueHandler
DEFAULT_PROPERTY_NAME, MSG_InvalidParameter, MSGKEY_InvalidParameter -
Constructor Summary
ConstructorsConstructorDescriptionPathMatcherValueHandler(BiConsumer<String, PathMatcher> valueSetter) Creates a new instance ofPathMatcherHandler.PathMatcherValueHandler(CLIDefinition context, BiConsumer<String, PathMatcher> valueSetter) Creates a new instance ofPathMatcherHandler. -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<PathMatcher> translate(Parameters params) Translates the command line values that can be referenced via theparamsargument to the target type.Methods inherited from class CmdLineValueHandler
getCLIDefinition, getPropertyName, getValueSetter, parseCmdLine, setContext
-
Constructor Details
-
PathMatcherValueHandler
Creates a new instance ofPathMatcherHandler.- Parameters:
valueSetter- TheConsumerthat places the translated value to the property.
-
PathMatcherValueHandler
Creates a new instance ofPathMatcherHandler.- Parameters:
context- The CLI definition that provides the context for this value handler.valueSetter- TheConsumerthat places the translated value to the property.
-
-
Method Details
-
translate
Translates the command line values that can be referenced via theparamsargument to the target type.- Specified by:
translatein classCmdLineValueHandler<PathMatcher>- Parameters:
params- The command line values to translate.- Returns:
- A collection with the result; each entry in the collection corresponds to one value from the command line.
- Throws:
CmdLineException- The given parameters cannot be parsed to the target type.
-
