Package com.vaadin.flow.router
Class RouteParameterRegex
java.lang.Object
com.vaadin.flow.router.RouteParameterRegex
- All Implemented Interfaces:
Serializable
Predefined regex used with template parameters.
- See Also:
-
Field Details
-
INTEGER
Integer type regex.- See Also:
-
LONG
Long type regex.- See Also:
-
BOOLEAN
Boolean type regex.- See Also:
-
-
Method Details
-
getRegex
Gets the regex used for the given parameterType.- Parameters:
parameterType
- type of the parameter.- Returns:
- the regex matching the type.
-
getType
Gets the type of the parameter for the given regex.- Parameters:
regex
- the regex.- Returns:
- the type of the parameter.
-
getName
Gets the name representation of the regex.- Parameters:
regex
- the regex.- Returns:
- the name of the parameter type represented by the regex.
-