Class SharePathError
isAbc()
methods will return true. You can use tag() to determine the
tag associated with this instance.
Open unions may be extended in the future with additional tags. If a new
tag is introduced that this SDK does not recognized, the OTHER value
will be used.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SharePathErrorWe do not support shared folders that contain app folders.static final SharePathErrorWe do not support shared folders that contain shared folders.static final SharePathErrorWe do not support shared folders that contain team folders.static final SharePathErrorWe do not support sharing a folder inside an app folder.static final SharePathErrorWe do not support sharing a folder inside a Mac OS X package.static final SharePathErrorA folder inside a public folder can't be shared this way.static final SharePathErrorWe do not support sharing a folder inside a shared folder.static final SharePathErrorPath is not valid.static final SharePathErrorWe do not support sharing an app folder.static final SharePathErrorWe do not support sharing the Family folder.static final SharePathErrorA file is at the specified path.static final SharePathErrorWe do not support sharing a Mac OS X package.static final SharePathErrorA public folder can't be shared this way.static final SharePathErrorWe do not support sharing the Vault folder.static final SharePathErrorWe do not support sharing a folder inside a locked Vault.static final SharePathErrorCatch-all used for unknown tag values returned by the Dropbox servers. -
Method Summary
Modifier and TypeMethodDescriptionstatic SharePathErrorReturns an instance ofSharePathErrorthat has its tag set toSharePathError.Tag.ALREADY_SHARED.booleanFolder is already shared.inthashCode()booleanbooleanbooleanReturnstrueif this instance has the tagSharePathError.Tag.CONTAINS_SHARED_FOLDER,falseotherwise.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisIsFile()booleanbooleanbooleanbooleanbooleanisOther()tag()Returns the tag for this instance.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
IS_FILE
A file is at the specified path. -
INSIDE_SHARED_FOLDER
We do not support sharing a folder inside a shared folder. -
CONTAINS_SHARED_FOLDER
We do not support shared folders that contain shared folders. -
CONTAINS_APP_FOLDER
We do not support shared folders that contain app folders. -
CONTAINS_TEAM_FOLDER
We do not support shared folders that contain team folders. -
IS_APP_FOLDER
We do not support sharing an app folder. -
INSIDE_APP_FOLDER
We do not support sharing a folder inside an app folder. -
IS_PUBLIC_FOLDER
A public folder can't be shared this way. Use a public link instead. -
INSIDE_PUBLIC_FOLDER
A folder inside a public folder can't be shared this way. Use a public link instead. -
INVALID_PATH
Path is not valid. -
IS_OSX_PACKAGE
We do not support sharing a Mac OS X package. -
INSIDE_OSX_PACKAGE
We do not support sharing a folder inside a Mac OS X package. -
IS_VAULT
We do not support sharing the Vault folder. -
IS_VAULT_LOCKED
We do not support sharing a folder inside a locked Vault. -
IS_FAMILY
We do not support sharing the Family folder. -
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.Receiving a catch-all value typically indicates this SDK version is not up to date. Consider updating your SDK version to handle the new tags.
-
-
Method Details
-
tag
Returns the tag for this instance.This class is a tagged union. Tagged unions instances are always associated to a specific tag. This means only one of the
isXyz()methods will returntrue. Callers are recommended to use the tag value in aswitchstatement to properly handle the different values for thisSharePathError.If a tag returned by the server is unrecognized by this SDK, the
SharePathError.Tag.OTHERvalue will be used.- Returns:
- the tag for this instance.
-
isIsFile
public boolean isIsFile()- Returns:
trueif this instance is tagged asSharePathError.Tag.IS_FILE,falseotherwise.
-
isContainsAppFolder
public boolean isContainsAppFolder()- Returns:
trueif this instance is tagged asSharePathError.Tag.CONTAINS_APP_FOLDER,falseotherwise.
-
isContainsTeamFolder
public boolean isContainsTeamFolder()- Returns:
trueif this instance is tagged asSharePathError.Tag.CONTAINS_TEAM_FOLDER,falseotherwise.
-
isIsAppFolder
public boolean isIsAppFolder()- Returns:
trueif this instance is tagged asSharePathError.Tag.IS_APP_FOLDER,falseotherwise.
-
isInsideAppFolder
public boolean isInsideAppFolder()- Returns:
trueif this instance is tagged asSharePathError.Tag.INSIDE_APP_FOLDER,falseotherwise.
-
isIsPublicFolder
public boolean isIsPublicFolder()- Returns:
trueif this instance is tagged asSharePathError.Tag.IS_PUBLIC_FOLDER,falseotherwise.
-
isInsidePublicFolder
public boolean isInsidePublicFolder()- Returns:
trueif this instance is tagged asSharePathError.Tag.INSIDE_PUBLIC_FOLDER,falseotherwise.
-
isInvalidPath
public boolean isInvalidPath()- Returns:
trueif this instance is tagged asSharePathError.Tag.INVALID_PATH,falseotherwise.
-
isIsOsxPackage
public boolean isIsOsxPackage()- Returns:
trueif this instance is tagged asSharePathError.Tag.IS_OSX_PACKAGE,falseotherwise.
-
isInsideOsxPackage
public boolean isInsideOsxPackage()- Returns:
trueif this instance is tagged asSharePathError.Tag.INSIDE_OSX_PACKAGE,falseotherwise.
-
isIsVault
public boolean isIsVault()- Returns:
trueif this instance is tagged asSharePathError.Tag.IS_VAULT,falseotherwise.
-
isIsVaultLocked
public boolean isIsVaultLocked()- Returns:
trueif this instance is tagged asSharePathError.Tag.IS_VAULT_LOCKED,falseotherwise.
-
isIsFamily
public boolean isIsFamily()- Returns:
trueif this instance is tagged asSharePathError.Tag.IS_FAMILY,falseotherwise.
-
isOther
public boolean isOther()- Returns:
trueif this instance is tagged asSharePathError.Tag.OTHER,falseotherwise.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-