getParentFromPath static method
Returns the fully qualified node path of the parental node.
@param path the fully qualified path of which the parental node is extracted @return the fully qualified path to the parental node
Implementation
static String? getParentFromPath(String? path) {
if (path == null) {
return null;
}
if (path == ':') {
return null;
}
if (!path.contains(GenericController.pathDelimiter)) {
return '';
}
String ret =
path.substring(0, path.lastIndexOf(GenericController.pathDelimiter));
ret = '' == ret ? ':' : ret;
return ret;
}