|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.file.util.PathUtils.ResolvedDestination
public static class PathUtils.ResolvedDestination
This class represents a destination entered by the user and resolved by PathUtils.resolveDestination(String, com.mucommander.file.AbstractFile)
into an AbstractFile and a destination type.
PathUtils.resolveDestination(String, com.mucommander.file.AbstractFile)| Field Summary | |
|---|---|
static int |
EXISTING_FILE
Designates a regular file that exists on the filesystem. |
static int |
EXISTING_FOLDER
Designates a folder, either a directory or archive, that exists on the filesystem. |
static int |
NEW_FILE
Designates a new file that doesn't exist on the filesystem. |
| Method Summary | |
|---|---|
AbstractFile |
getDestinationFile()
Returns the resolved destination file. |
AbstractFile |
getDestinationFolder()
Returns the resolved destination's folder. |
int |
getDestinationType()
Returns the type of destination that was resolved. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int EXISTING_FOLDER
public static final int EXISTING_FILE
public static final int NEW_FILE
| Method Detail |
|---|
public AbstractFile getDestinationFile()
getDestinationType()public AbstractFile getDestinationFolder()
destination type,
the destination folder is:
EXISTING_FOLDERdestination file itselfEXISTING_FILE or NEW_FILEdestination file's parentAbstractFile is always a folder that exists.
getDestinationType()public int getDestinationType()
EXISTING_FOLDEREXISTING_FILENEW_FILE/existing_folder/existing_archive.zip/ refers to the archive as a folder where as
/existing_folder/existing_archive.zip refers to the archive as a regular file.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard