com.vaadin.flow.router.
Class RouteParameterRegex
- java.lang.Object
-
- com.vaadin.flow.router.RouteParameterRegex
-
All Implemented Interfaces:
public class RouteParameterRegex extends Object implements Serializable
Predefined regex used with template parameters.
See Also:
-
-
Method Summary
All Methods Modifier and Type Method Description static String
getName(String regex)
Gets the name representation of the regex.
static String
getRegex(Class<?> parameterType)
Gets the regex used for the given parameterType.
static Class<?>
getType(String regex)
Gets the type of the parameter for the given regex.
-
-
-
Method Detail
-
getRegex
public static String getRegex(Class<?> parameterType)
Gets the regex used for the given parameterType.
Parameters:
parameterType
- type of the parameter.Returns:
the regex matching the type.
-
getType
public static Class<?> getType(String regex)
Gets the type of the parameter for the given regex.
Parameters:
regex
- the regex.Returns:
the type of the parameter.
-
-