@Override public String getPathObjectCombination( String transName ) { if ( isRoot() ) { return getPath() + transName; } else { return getPath() + RepositoryDirectory.DIRECTORY_SEPARATOR + transName; } }
/** * Find the root of the directory tree starting from this directory. * * @return the root of the directory tree */ @Override public RepositoryDirectoryInterface findRoot() { if ( isRoot() ) { return this; } return getParent().findRoot(); }
public RepositoryDirectory findDirectory( String[] path ) { if ( isRoot() && path.length == 1 && path[0].equalsIgnoreCase( DIRECTORY_SEPARATOR ) ) { return this; if ( isRoot() && directoryPath.length == 1 && directoryPath[0].equalsIgnoreCase( DIRECTORY_SEPARATOR ) ) { return this; } else if ( directoryPath.length == 1 && directoryPath[0].equalsIgnoreCase( getName() ) ) {