Package com.dropbox.core.v2.files
Class DeletedMetadata
- java.lang.Object
-
- com.dropbox.core.v2.files.Metadata
-
- com.dropbox.core.v2.files.DeletedMetadata
-
public class DeletedMetadata extends Metadata
Indicates that there used to be a file or folder at this path, but it no longer exists.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeletedMetadata.Builder
Builder forDeletedMetadata
.
-
Field Summary
-
Fields inherited from class com.dropbox.core.v2.files.Metadata
name, parentSharedFolderId, pathDisplay, pathLower
-
-
Constructor Summary
Constructors Constructor Description DeletedMetadata(java.lang.String name)
Indicates that there used to be a file or folder at this path, but it no longer exists.DeletedMetadata(java.lang.String name, java.lang.String pathLower, java.lang.String pathDisplay, java.lang.String parentSharedFolderId)
Indicates that there used to be a file or folder at this path, but it no longer exists.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getName()
The last component of the path (including extension).java.lang.String
getParentSharedFolderId()
Please useFileSharingInfo.getParentSharedFolderId()
orFolderSharingInfo.getParentSharedFolderId()
instead.java.lang.String
getPathDisplay()
The cased path to be used for display purposes only.java.lang.String
getPathLower()
The lowercased full path in the user's Dropbox.int
hashCode()
static DeletedMetadata.Builder
newBuilder(java.lang.String name)
Returns a new builder for creating an instance of this class.java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Constructor Detail
-
DeletedMetadata
public DeletedMetadata(java.lang.String name, java.lang.String pathLower, java.lang.String pathDisplay, java.lang.String parentSharedFolderId)
Indicates that there used to be a file or folder at this path, but it no longer exists.Use
newBuilder(java.lang.String)
to create instances of this class without specifying values for all optional fields.- Parameters:
name
- The last component of the path (including extension). This never contains a slash. Must not benull
.pathLower
- The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted.pathDisplay
- The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned byDbxUserFilesRequests.listFolderContinue(String)
. This field will be null if the file or folder is not mounted.parentSharedFolderId
- Please useFileSharingInfo.getParentSharedFolderId()
orFolderSharingInfo.getParentSharedFolderId()
instead. Must match pattern "[-_0-9a-zA-Z:]+
".- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
DeletedMetadata
public DeletedMetadata(java.lang.String name)
Indicates that there used to be a file or folder at this path, but it no longer exists.The default values for unset fields will be used.
- Parameters:
name
- The last component of the path (including extension). This never contains a slash. Must not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getName
public java.lang.String getName()
The last component of the path (including extension). This never contains a slash.
-
getPathLower
public java.lang.String getPathLower()
The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted.- Overrides:
getPathLower
in classMetadata
- Returns:
- value for this field, or
null
if not present.
-
getPathDisplay
public java.lang.String getPathDisplay()
The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned byDbxUserFilesRequests.listFolderContinue(String)
. This field will be null if the file or folder is not mounted.- Overrides:
getPathDisplay
in classMetadata
- Returns:
- value for this field, or
null
if not present.
-
getParentSharedFolderId
public java.lang.String getParentSharedFolderId()
Please useFileSharingInfo.getParentSharedFolderId()
orFolderSharingInfo.getParentSharedFolderId()
instead.- Overrides:
getParentSharedFolderId
in classMetadata
- Returns:
- value for this field, or
null
if not present.
-
newBuilder
public static DeletedMetadata.Builder newBuilder(java.lang.String name)
Returns a new builder for creating an instance of this class.- Parameters:
name
- The last component of the path (including extension). This never contains a slash. Must not benull
.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultiline
in classMetadata
- Returns:
- Formatted, multiline String representation of this object
-
-