OSID Logo
OSID Specifications
filing package
Version 3.1.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.

Parameterscardinalfrom low file size
cardinalto high file size
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT to is les than from
Compliancemandatory This method must be implemented.
MethodmatchAnySize
Description

Matches a file that has any known size.

Parametersbooleanmatch true to match any size, false to match files with no known size
Compliancemandatory This method must be implemented.
MethodclearSizeTerms
Description

Clears all file size terms.

Compliancemandatory This 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.

Parametersstringdata string to match
osid.type.TypestringMatchType the string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT data not of stringMatchType
NULL_ARGUMENT data or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
Compliancemandatory This method must be implemented.
MethodclearDataStringTerms
Description

Clears all file data string terms.

Compliancemandatory This method must be implemented.
MethodmatchData
Description

Matches files who data contains the given bytes.

Parametersbyte[]data data to match
booleanmatch true for a positive match, false for a negative match
booleanpartial true for a partial match, false for a complete match
ErrorsNULL_ARGUMENT data is null
Compliancemandatory This method must be implemented.
MethodmatchAnyData
Description

Matches a file that has any data.

Parametersbooleanmatch true to match any data, false to match files with no data
Compliancemandatory This method must be implemented.
MethodclearDataTerms
Description

Clears all file data terms.

Compliancemandatory This 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.TypefileRecordType a file record type
Returnosid.filing.records.FileQueryRecord the file query record
ErrorsNULL_ARGUMENT fileRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(fileRecordType) is false
Compliancemandatory This method must be implemented.