if( path != null ) { if( enclosed() ) { for( Path root : roots() ) { if( root is prefix of path ) { return path relative to root } } } else { for( Path root : roots() ) { if( root device matches path device ) { return path relative to root (possibly with parent navigations) } } } } return null
Can be overridden to customize conversion logic. The implementation must return null if path parameter is null or if relative path could not be computed for whatever reason. Exceptions must not be used to signal failure to convert.
@param path the absolute path that should be converted to relative @return the relative path or null if a relative path could not be computed
|
|