com.vaadin.flow.router.

Class RouteParameterRegex

java.lang.Object
com.vaadin.flow.router.RouteParameterRegex

All Implemented Interfaces:

Serializable

public class RouteParameterRegex extends Object implements Serializable

Predefined regex used with template parameters.

See Also:

  • Field Details

  • Method Details

    • 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.

    • getName

      public static String getName(String regex)

      Gets the name representation of the regex.

      Parameters:

      regex - the regex.

      Returns:

      the name of the parameter type represented by the regex.