OSID Logo
OSID Specifications
lexicon package
Version 3.0.0
Interfaceosid.lexicon.PressQuery
Implementsosid.OsidCatalogQuery
Used Byosid.lexicon.IdiomQuery
osid.lexicon.ParameterQuery
osid.lexicon.PressQuery
osid.lexicon.PressQuerySession
osid.lexicon.PressSearchSession
osid.lexicon.TextQuery
Description

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

MethodmatchTextId
Description

Sets the text Id for this query to match presses that have a related affiliation.

Parametersosid.id.IdtextIda text Id
booleanmatchtrue if a positive match, false for negative match
ErrorsNULL_ARGUMENTtextId is null
CompliancemandatoryThis method must be implemented.
MethodclearTextIdTerms
Description

Clears the text Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsTextQuery
Description

Tests if a TextQuery is available.

Returnbooleantrue if a text query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetTextQuery
Description

Gets the query for a text. Multiple retrievals produce a nested OR term.

Returnosid.lexicon.TextQuerythe text query
ErrorsUNIMPLEMENTEDsupportsTextQuery() is false
ComplianceoptionalThis method must be implemented if supportsTextQuery() is true .
MethodmatchAnyText
Description

Matches presses that have any text.

Parametersbooleanmatchtrue to match presses with any text, false to match presses with no text
CompliancemandatoryThis method must be implemented.
MethodclearTextTerms
Description

Clears the text query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchIdiomId
Description

Sets the idiom Id for this query.

Parametersosid.id.IdidiomIdthe idiom Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTidiomId is null
CompliancemandatoryThis method must be implemented.
MethodclearIdiomIdTerms
Description

Clears the idiom Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsIdiomQuery
Description

Tests if a IdiomQuery is available.

Returnbooleantrue if an idiom query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetIdiomQuery
Description

Gets the query for an idiom. Multiple retrievals produce a nested OR term.

Returnosid.lexicon.IdiomQuerythe idiom query
ErrorsUNIMPLEMENTEDsupportsIdiomQuery() is false
ComplianceoptionalThis method must be implemented if supportsIdiomQuery() is true .
MethodmatchAnyIdiom
Description

Matches action groups with any idiom.

Parametersbooleanmatchtrue to match presses with any idiom, false to match presses with no idiom
CompliancemandatoryThis method must be implemented.
MethodclearIdiomTerms
Description

Clears the idiom query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchParameterId
Description

Sets the parameter Id for this query.

Parametersosid.id.IdparameterIdthe parameter Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTparameterId is null
CompliancemandatoryThis method must be implemented.
MethodclearParameterIdTerms
Description

Clears the parameter Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsParameterQuery
Description

Tests if a ParameterQuery is available.

Returnbooleantrue if a parameter query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetParameterQuery
Description

Gets the query for a parameter. Multiple retrievals produce a nested OR term.

Returnosid.lexicon.ParameterQuerythe parameter query
ErrorsUNIMPLEMENTEDsupportsParameterQuery() is false
ComplianceoptionalThis method must be implemented if supportsParameterQuery() is true .
MethodmatchAnyParameter
Description

Matches presses with any parameter.

Parametersbooleanmatchtrue to match presses with any parameter, false to match presses with no parameter
CompliancemandatoryThis method must be implemented.
MethodclearParameterTerms
Description

Clears the parameter query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorPressId
Description

Sets the press Id for this query to match presses that have the specified press as an ancestor.

Parametersosid.id.IdpressIdan press Id
booleanmatchtrue for a positive match, false for negative match
ErrorsNULL_ARGUMENTpressId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorPressIdTerms
Description

Clears the ancestor press Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorPressQuery
Description

Tests if a PressQuery is available.

Returnbooleantrue if an press query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAncestorPressQuery
Description

Gets the query for an press. Multiple retrievals produce a nested OR term.

Returnosid.lexicon.PressQuerythe press query
ErrorsUNIMPLEMENTEDsupportsAncestorPressQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorPressQuery() is true .
MethodmatchAnyAncestorPress
Description

Matches presses with any ancestor.

Parametersbooleanmatchtrue to match presses with any ancestor, false to match root presses
CompliancemandatoryThis method must be implemented.
MethodclearAncestorPressTerms
Description

Clears the ancestor press query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantPressId
Description

Sets the press Id for this query to match presses that have the specified press as a descendant.

Parametersosid.id.IdpressIdan press Id
booleanmatchtrue for a positive match, false for negative match
ErrorsNULL_ARGUMENTpressId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantPressIdTerms
Description

Clears the descendant press Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantPressQuery
Description

Tests if a PressQuery is available.

Returnbooleantrue if an press query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDescendantPressQuery
Description

Gets the query for an press/ Multiple retrievals produce a nested OR term.

Returnosid.lexicon.PressQuerythe press query
ErrorsUNIMPLEMENTEDsupportsDescendantPressQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantPressQuery() is true .
MethodmatchAnyDescendantPress
Description

Matches presses with any descendant.

Parametersbooleanmatchtrue to match presses with any descendant, false to match leaf presses
CompliancemandatoryThis method must be implemented.
MethodclearDescendantPressTerms
Description

Clears the descendant press query terms.

CompliancemandatoryThis method must be implemented.
MethodgetPressQueryRecord
Description

Gets the press query record corresponding to the given Press record Type .Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypepressRecordTypea press record type
Returnosid.lexicon.records.PressQueryRecordthe press query record
ErrorsNULL_ARGUMENTpressRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(pressRecordType) is false
CompliancemandatoryThis method must be implemented.