20 package net.sf.gridarta.model.mapmodel;
22 import org.jetbrains.annotations.NotNull;
44 if (
string.startsWith(
"/")) {
58 if (!
string.startsWith(
"/")) {
59 throw new IllegalArgumentException(
"map path '" +
string +
"' is not absolute");
72 if (
string.startsWith(
"/")) {
73 throw new IllegalArgumentException(
"map path '" +
string +
"' is not relative");
97 return append(baseMapPath, mapPath.getPath());
109 final String tmpPath = result.
getPath();
110 if (!tmpPath.isEmpty() && !tmpPath.equals(
"..") && !tmpPath.endsWith(
"/..")) {
114 if (!path.isEmpty()) {
130 final String tmpPath = result.
getPath();
131 if (!tmpPath.isEmpty() && !tmpPath.equals(
"..") && !tmpPath.endsWith(
"/..")) {
135 if (!path.isEmpty()) {