Interface IdiomQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidSubjugateableQuery, Suppliable

public interface IdiomQuery extends OsidObjectQuery, OsidSubjugateableQuery

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

  • Method Details

    • matchTextId

      void matchTextId(Id textId, boolean match)
      Sets the text Id for this query to match presses that have a related affiliation.
      Parameters:
      textId - a text Id
      match - true if a positive match, false for negative match
      Throws:
      NullArgumentException - textId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearTextIdTerms

      void clearTextIdTerms()
      Clears the text Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsTextQuery

      boolean supportsTextQuery()
      Tests if a TextQuery is available.
      Returns:
      true if a text query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getTextQuery

      TextQuery getTextQuery()
      Gets the query for a text. Multiple retrievals produce a nested OR term.
      Returns:
      the text query
      Throws:
      UnimplementedException - supportsTextQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsTextQuery()} is {@code true} .
    • clearTextTerms

      void clearTextTerms()
      Clears the text query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchLanguageType

      void matchLanguageType(Type languageType, boolean match)
      Matches idioms of the given language type.
      Parameters:
      languageType - a language Type
      match - true if a positive match, false for negative match
      Throws:
      NullArgumentException - languageType is null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyLanguageType

      void matchAnyLanguageType(boolean match)
      Matches idioms with any known language type.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • clearLanguageTypeTerms

      void clearLanguageTypeTerms()
      Clears the language type query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchScriptType

      void matchScriptType(Type scriptType, boolean match)
      Matches idioms of the given script type.
      Parameters:
      scriptType - a script Type
      match - true if a positive match, false for negative match
      Throws:
      NullArgumentException - scriptType is null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyScriptType

      void matchAnyScriptType(boolean match)
      Matches idioms with any known script type.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • clearScriptTypeTerms

      void clearScriptTypeTerms()
      Clears the script type query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchFormatType

      void matchFormatType(Type formatType, boolean match)
      Matches idioms of the given format type.
      Parameters:
      formatType - a format Type
      match - true if a positive match, false for negative match
      Throws:
      NullArgumentException - formatType is null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyFormatType

      void matchAnyFormatType(boolean match)
      Matches idioms with any known format type.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • clearFormatTypeTerms

      void clearFormatTypeTerms()
      Clears the format type query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchTemplate

      void matchTemplate(String template, Type stringMatchType, boolean match)
      Matches idioms of the given template.
      Parameters:
      template - a template
      stringMatchType - a string match type
      match - true if a positive match, false for negative match
      Throws:
      NullArgumentException - template or stringMatchType is null
      UnsupportedException - supportsStringMatchType(stringMatchType) is false
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyTemplate

      void matchAnyTemplate(boolean match)
      Matches idioms with any template.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • clearTemplateTerms

      void clearTemplateTerms()
      Clears the template query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchPressId

      void matchPressId(Id actionGroupId, boolean match)
      Sets the action group Id for this query to match parameters assigned to action groups.
      Parameters:
      actionGroupId - the action group Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - actionGroupId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearPressIdTerms

      void clearPressIdTerms()
      Clears the press Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsPressQuery

      boolean supportsPressQuery()
      Tests if a PressQuery is available.
      Returns:
      true if an press query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getPressQuery

      PressQuery getPressQuery()
      Gets the query for an press. Multiple retrievals produce a nested OR term.
      Returns:
      the press query
      Throws:
      UnimplementedException - supportsPressQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsPressQuery()} is {@code true} .
    • clearPressTerms

      void clearPressTerms()
      Clears the press query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getIdiomQueryRecord

      IdiomQueryRecord getIdiomQueryRecord(Type idiomRecordType) throws OperationFailedException
      Gets the idiom query record corresponding to the given Idiom record Type .Multiple record retrievals produce a nested OR term.
      Parameters:
      idiomRecordType - an idiom record type
      Returns:
      the idiom query record
      Throws:
      NullArgumentException - idiomRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(idiomRecordType) is false
      Compliance:
      mandatory - This method must be implemented.