Class MapPathUtils


  • public class MapPathUtils
    extends java.lang.Object
    Utility class for MapPath related functions.
    • Method Detail

      • newMapPath

        @NotNull
        public static @NotNull MapPath newMapPath​(@NotNull
                                                  @NotNull java.lang.String string)
        Creates a MapPath instance from string representation. Ignores excess "/" characters.
        Parameters:
        string - the string representation
        Returns:
        the map path instance
      • newAbsoluteMapPath

        @NotNull
        public static @NotNull AbsoluteMapPath newAbsoluteMapPath​(@NotNull
                                                                  @NotNull java.lang.String string)
        Creates an AbsoluteMapPath instance from string representation. Ignores excess "/" characters.
        Parameters:
        string - the string representation
        Returns:
        the map path instance
      • newRelativeMapPath

        @NotNull
        public static @NotNull RelativeMapPath newRelativeMapPath​(@NotNull
                                                                  @NotNull java.lang.String string)
        Creates a RelativeMapPath instance from string representation. Ignores excess "/" characters.
        Parameters:
        string - the string representation
        Returns:
        the map path instance
      • append

        @NotNull
        public static @NotNull AbsoluteMapPath append​(@NotNull
                                                      @NotNull AbsoluteMapPath baseMapPath,
                                                      @NotNull
                                                      @NotNull MapPath mapPath)
        Appends a map path to another map path.
        Parameters:
        baseMapPath - the base map path to append to
        mapPath - the map path to append
        Returns:
        the combined path
      • append

        @NotNull
        public static @NotNull RelativeMapPath append​(@NotNull
                                                      @NotNull RelativeMapPath baseMapPath,
                                                      @NotNull
                                                      @NotNull RelativeMapPath mapPath)
        Appends a map path to another map path.
        Parameters:
        baseMapPath - the base map path to append to
        mapPath - the map path to append
        Returns:
        the combined path