public class ExoFile extends Object implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
boolean |
canRemove
Whether this file can be deleted, renamed
|
List<ExoFile> |
children
List of sub-files and sub-folders
|
static android.os.Parcelable.Creator<ExoFile> |
CREATOR |
String |
currentFolder
The path of file
|
String |
driveName
The drive name in which this file is
|
boolean |
isFolder
Whether this file is a folder
|
String |
name
Name of the file/folder
|
String |
nodeType
File content type
|
String |
path
File's JCR URL
|
String |
workspaceName
The workspace in which this file is
|
Modifier and Type | Method and Description |
---|---|
void |
createNaturalName()
Create the natural name of the folder, based on the name property,
as follows
1st dot is removed
other '.' and '_' are replaced by spaces
all remaining words must start by a capital letter
exo is replaced by eXo
ending 's' in 'spaces' is removed
The naturalName property is created.
|
int |
describeContents() |
String |
getName()
The name of the file / folder.
If the naturalName exists, naturalName is returned instead. |
void |
writeToParcel(android.os.Parcel par,
int flags) |
public String path
public boolean isFolder
public boolean canRemove
public String name
public String currentFolder
public String driveName
public String workspaceName
public String nodeType
public static final android.os.Parcelable.Creator<ExoFile> CREATOR
public ExoFile()
public ExoFile(String driverName)
public String getName()
public void createNaturalName()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel par, int flags)
writeToParcel
in interface android.os.Parcelable
Copyright © 2003–2016 eXo Platform SAS. All rights reserved.