Modifier and Type | Method | Description |
---|---|---|
default int |
countAliass() |
|
int |
countAliass(String filter) |
|
default int |
countDiskItems() |
|
int |
countDiskItems(String filter) |
|
default int |
countFilePackages() |
|
int |
countFilePackages(String filter) |
|
default int |
countFiles() |
|
int |
countFiles(String filter) |
|
default int |
countFolders() |
|
int |
countFolders(String filter) |
|
default int |
countItems() |
|
int |
countItems(String filter) |
|
Alias |
getAlias(int index) |
|
Alias |
getAlias(Id id) |
|
default Alias[] |
getAliass() |
|
Alias[] |
getAliass(String filter) |
|
double |
getCapacity() |
The total number of bytes (free or used) on the disk.
|
DiskItem |
getDiskItem(int index) |
|
DiskItem |
getDiskItem(Id id) |
|
default DiskItem[] |
getDiskItems() |
|
DiskItem[] |
getDiskItems(String filter) |
|
File |
getFile(int index) |
|
File |
getFile(Id id) |
|
FilePackage |
getFilePackage(int index) |
|
FilePackage |
getFilePackage(Id id) |
|
default FilePackage[] |
getFilePackages() |
|
FilePackage[] |
getFilePackages(String filter) |
|
default File[] |
getFiles() |
|
File[] |
getFiles(String filter) |
|
Folder |
getFolder(int index) |
|
Folder |
getFolder(Id id) |
|
default Folder[] |
getFolders() |
|
Folder[] |
getFolders(String filter) |
|
Edfm |
getFormat() |
The file system format of this disk.
|
double |
getFreeSpace() |
The number of free bytes left on the disk.
|
Reference |
getItem(int index) |
|
Reference |
getItem(Id id) |
|
default Reference[] |
getItems() |
|
Reference[] |
getItems(String filter) |
|
Map<String,Object> |
getProperties() |
Returns all properties for an instance of this class.
|
Reference |
getServer() |
The server on which the disk resides, AFP volumes only.
|
Reference |
getZone() |
The zone in which the disk's server resides, AFP volumes only.
|
boolean |
isEjectable() |
Can the media be ejected (floppies, CD's, and so on)?
|
boolean |
isIgnorePrivileges() |
Ignore permissions on this disk?
|
boolean |
isLocalVolume() |
Is the media a local volume (as opposed to a file server)?
|
boolean |
isStartup() |
Is this disk the boot disk?
|
void |
setIgnorePrivileges(boolean ignorePrivileges) |
Ignore permissions on this disk?
|
getContainer, getCreationDate, getDisplayedName, getId, getModificationDate, getName, getNameExtension, getPath, getPhysicalSize, getPosixPath, getSize, getUrl, getVolume, isBusyStatus, isPackageFolder, isVisible, setModificationDate, setName, setVisible
cast, getApplicationReference, getObjectReference, getTypeClass, isInstanceOf
static final TypeClass CLASS
@Kind("element") @Type("alias") default Alias[] getAliass()
Alias
s@Kind("element") @Type("alias") Alias[] getAliass(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"Alias
s@Kind("element") @Type("alias") Alias getAlias(int index)
index
- index into the element list (zero-based)Alias
at the requested index@Kind("element") @Type("alias") Alias getAlias(Id id)
id
- id of the itemAlias
with the requested id@Kind("element") @Type("alias") default int countAliass()
Alias
s@Kind("element") @Type("alias") int countAliass(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"@Kind("element") @Type("disk item") default DiskItem[] getDiskItems()
DiskItem
s@Kind("element") @Type("disk item") DiskItem[] getDiskItems(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"DiskItem
s@Kind("element") @Type("disk item") DiskItem getDiskItem(int index)
index
- index into the element list (zero-based)DiskItem
at the requested index@Kind("element") @Type("disk item") DiskItem getDiskItem(Id id)
id
- id of the itemDiskItem
with the requested id@Kind("element") @Type("disk item") default int countDiskItems()
DiskItem
s@Kind("element") @Type("disk item") int countDiskItems(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"@Kind("element") @Type("file") File[] getFiles(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"File
s@Kind("element") @Type("file") File getFile(int index)
index
- index into the element list (zero-based)File
at the requested index@Kind("element") @Type("file") File getFile(Id id)
id
- id of the itemFile
with the requested id@Kind("element") @Type("file") int countFiles(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"@Kind("element") @Type("file package") default FilePackage[] getFilePackages()
FilePackage
s@Kind("element") @Type("file package") FilePackage[] getFilePackages(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"FilePackage
s@Kind("element") @Type("file package") FilePackage getFilePackage(int index)
index
- index into the element list (zero-based)FilePackage
at the requested index@Kind("element") @Type("file package") FilePackage getFilePackage(Id id)
id
- id of the itemFilePackage
with the requested id@Kind("element") @Type("file package") default int countFilePackages()
FilePackage
s@Kind("element") @Type("file package") int countFilePackages(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"@Kind("element") @Type("folder") default Folder[] getFolders()
Folder
s@Kind("element") @Type("folder") Folder[] getFolders(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"Folder
s@Kind("element") @Type("folder") Folder getFolder(int index)
index
- index into the element list (zero-based)Folder
at the requested index@Kind("element") @Type("folder") Folder getFolder(Id id)
id
- id of the itemFolder
with the requested id@Kind("element") @Type("folder") default int countFolders()
Folder
s@Kind("element") @Type("folder") int countFolders(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"@Kind("element") @Type("item") default Reference[] getItems()
Reference
s@Kind("element") @Type("item") Reference[] getItems(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"Reference
s@Kind("element") @Type("item") Reference getItem(int index)
index
- index into the element list (zero-based)Reference
at the requested index@Kind("element") @Type("item") Reference getItem(Id id)
id
- id of the itemReference
with the requested id@Kind("element") @Type("item") default int countItems()
Reference
s@Kind("element") @Type("item") int countItems(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"@Code("capa") @Kind("property") @Name("capacity") @Type("number") double getCapacity()
@Code("isej") @Kind("property") @Name("ejectable") @Type("boolean") boolean isEjectable()
@Code("dfmt") @Kind("property") @Name("format") @Type("edfm") Edfm getFormat()
@Code("frsp") @Kind("property") @Name("free space") @Type("number") double getFreeSpace()
@Code("igpr") @Kind("property") @Name("ignore privileges") @Type("boolean") boolean isIgnorePrivileges()
@Code("igpr") @Kind("property") @Name("ignore privileges") @Type("boolean") void setIgnorePrivileges(boolean ignorePrivileges)
ignorePrivileges
- new property value@Code("isrv") @Kind("property") @Name("local volume") @Type("boolean") boolean isLocalVolume()
@Code("srvr") @Kind("property") @Name("server") @Type("any") Reference getServer()
@Code("istd") @Kind("property") @Name("startup") @Type("boolean") boolean isStartup()
@Code("zone") @Kind("property") @Name("zone") @Type("any") Reference getZone()
Map<String,Object> getProperties()
getProperties
in interface DiskItem