public static class DocumentSelectionOption.FolderOrDocuments extends Object
DocumentSelectionOption.getDocuments()
.Modifier and Type | Field and Description |
---|---|
static DocumentSelectionOption.FolderOrDocuments |
EMPTY
Represents an empty selection
|
Constructor and Description |
---|
DocumentSelectionOption.FolderOrDocuments(AnnotatedPluginDocument document)
Create a FolderOrDocuments for a selection of one document
|
DocumentSelectionOption.FolderOrDocuments(List<AnnotatedPluginDocument> documents)
Create a FolderOrDocuments for a selection of documents
|
DocumentSelectionOption.FolderOrDocuments(WritableDatabaseService folder)
Create a FolderOrDocuments for a folder selection
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<AnnotatedPluginDocument> |
getDocuments()
Get the selected documents or null if documents are not selected (a folder is selected).
|
WritableDatabaseService |
getFolder()
Get the selected folder or null if a folder was not selected (documents are selected).
|
int |
hashCode() |
public static final DocumentSelectionOption.FolderOrDocuments EMPTY
public DocumentSelectionOption.FolderOrDocuments(WritableDatabaseService folder)
folder
- the selected folderpublic DocumentSelectionOption.FolderOrDocuments(List<AnnotatedPluginDocument> documents)
documents
- the selected documentspublic DocumentSelectionOption.FolderOrDocuments(AnnotatedPluginDocument document)
document
- the selected documentpublic WritableDatabaseService getFolder()
getFolder()
and getDocuments()
, one will always return a non-null value while the other will return null.
To get the selected documents regardless of whether a folder is selected use DocumentSelectionOption.getDocuments()
.public List<AnnotatedPluginDocument> getDocuments()
getFolder()
and getDocuments()
, one will always return a non-null value while the other will return null.
To get the selected documents regardless of whether a folder is selected use DocumentSelectionOption.getDocuments()
.