Package com.dropbox.core.v1
Class DbxPathV1
- java.lang.Object
- 
- com.dropbox.core.v1.DbxPathV1
 
- 
 public class DbxPathV1 extends java.lang.ObjectUtility functions for working with Dropbox paths. This SDK usesStrings to represent paths.Dropbox paths always start with with a slash ( "/"). For full-Dropbox apps, the path is relative to the root of the user's Dropbox. For App Folder apps, the path is relative to the App Folder.
- 
- 
Constructor SummaryConstructors Constructor Description DbxPathV1()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckArg(java.lang.String argName, java.lang.String value)static voidcheckArgNonRoot(java.lang.String argName, java.lang.String value)static java.lang.StringfindError(java.lang.String path)static java.lang.StringgetName(java.lang.String path)Returns just the last component of the path.static java.lang.StringgetParent(java.lang.String path)Returns the parent path of the given path ornullif the path is"/".static booleanisValid(java.lang.String path)static java.lang.String[]split(java.lang.String path)
 
- 
- 
- 
Method Detail- 
isValidpublic static boolean isValid(java.lang.String path) 
 - 
findErrorpublic static java.lang.String findError(java.lang.String path) 
 - 
checkArgpublic static void checkArg(java.lang.String argName, java.lang.String value)
 - 
checkArgNonRootpublic static void checkArgNonRoot(java.lang.String argName, java.lang.String value)
 - 
getNamepublic static java.lang.String getName(java.lang.String path) Returns just the last component of the path.- getName("/")→- "/"
- getName("/Photos")→- "Photos"
- getName("/Photos/Home.jpeg")→- "Home.jpeg"
 
 - 
splitpublic static java.lang.String[] split(java.lang.String path) 
 - 
getParentpublic static java.lang.String getParent(java.lang.String path) Returns the parent path of the given path ornullif the path is"/".- getParent("/")→- null
- getParent("/Photos")→- "/"
- getParent("/Photos/Recent/Home.jpeg")→- "/Photos/Recent"
 
 
- 
 
-