We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.router.
Package com.vaadin.flow.router
Class RouteParameterData
java.lang.Object
com.vaadin.flow.router.RouteParameterData
All Implemented Interfaces:
Immutable data representing one url parameter.
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRouteParameterData
(String template, String regex) Creates a parameter data instance.
-
Method Summary
Modifier and TypeMethodDescriptiongetRegex()
Gets the regex of the parameter.
Gets the parameter template string.
boolean
Return true for optional parameter.
boolean
Return true for parameter with varargs.
-
Constructor Details
-
RouteParameterData
Creates a parameter data instance.
Parameters:
template
- the parameter template.regex
- the regex as found in the template.
-
-
Method Details
-
getTemplate
Gets the parameter template string.
Returns:
the parameter template.
-
getRegex
Gets the regex of the parameter.
Returns:
the regex of the parameter.
-
isOptional
public boolean isOptional()Return true for optional parameter.
Returns:
true for optional parameter
-
isVarargs
public boolean isVarargs()Return true for parameter with varargs.
Returns:
true for parameter with varargs
-