OSID Logo
OSID Specifications
filing package
Version 3.0.0
Interfaceosid.filing.FileQuery
Implementsosid.filing.DirectoryEntryQuery
Used Byosid.filing.DirectoryQuery
osid.filing.FileQuerySession
osid.filing.FileSearchSession
osid.filing.FileSmartDirectorySession
Description

This is the query for searching files. Each method specifies an AND term while multiple invocations of the same method produces a nested OR .

MethodmatchSize
Description

Matches files whose size is within and including the given range.

Parameterscardinalfromlow file size
cardinaltohigh file size
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTto is les than from
CompliancemandatoryThis method must be implemented.
MethodmatchAnySize
Description

Matches a file that has any known size.

Parametersbooleanmatchtrue to match any size, false to match files with no known size
CompliancemandatoryThis method must be implemented.
MethodclearSizeTerms
Description

Clears all file size terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDataString
Description

Adds data strings to this query to match files whose content contains these strings. Supplying multiple strings behaves like a boolean AND among the elements each which must correspond to the stringMatchType . An OR can be performed with multiple queries.

Parametersstringdatastring to match
osid.type.TypestringMatchTypethe string match type
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTdata not of stringMatchType
NULL_ARGUMENTdata or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodclearDataStringTerms
Description

Clears all file data string terms.

CompliancemandatoryThis method must be implemented.
MethodmatchData
Description

Matches files who data contains the given bytes.

Parametersbyte[]datadata to match
booleanmatchtrue for a positive match, false for a negative match
booleanpartialtrue for a partial match, false for a complete match
ErrorsNULL_ARGUMENTdata is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyData
Description

Matches a file that has any data.

Parametersbooleanmatchtrue to match any data, false to match files with no data
CompliancemandatoryThis method must be implemented.
MethodclearDataTerms
Description

Clears all file data terms.

CompliancemandatoryThis method must be implemented.
MethodgetFileQueryRecord
Description

Gets the file query record corresponding to the given File record Type .Multiple record retrievals produce a nested boolean OR term.

Parametersosid.type.TypefileRecordTypea file record type
Returnosid.filing.records.FileQueryRecordthe file query record
ErrorsNULL_ARGUMENTfileRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(fileRecordType) is false
CompliancemandatoryThis method must be implemented.