public interface OsidSourceableQuery extends OsidQuery
The OsidSourceableQuery is used to assemble search
queries for sourceables.
| Modifier and Type | Method and Description |
|---|---|
void |
clearBrandingIdTerms()
Clears all asset
Id terms. |
void |
clearBrandingTerms()
Clears all branding terms.
|
void |
clearLicenseTerms()
Clears all license terms.
|
void |
clearProviderIdTerms()
Clears all provider
Id terms. |
void |
clearProviderTerms()
Clears all provider terms.
|
AssetQuery |
getBrandingQuery(boolean match)
Gets the query for an asset.
|
ResourceQuery |
getProviderQuery(boolean match)
Gets the query for the provider.
|
void |
matchAnyBranding(boolean match)
Match sourceables with any branding.
|
void |
matchAnyLicense(boolean match)
Matches any object with a license.
|
void |
matchAnyProvider(boolean match)
Match sourceables with a provider value.
|
void |
matchBrandingId(Id assetId,
boolean match)
Match the
Id of an asset used for branding. |
void |
matchLicense(java.lang.String license,
Type stringMatchType,
boolean match)
Adds a license to match.
|
void |
matchProviderId(Id resourceId,
boolean match)
Match the
Id of the provider resource. |
boolean |
supportsBrandingQuery()
Tests if an
AssetQuery for the branding is available. |
boolean |
supportsProviderQuery()
Tests if a
ResourceQuery for the provider is available. |
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypevoid matchProviderId(Id resourceId, boolean match)
Id of the provider resource.resourceId - Id to matchmatch - true if for a positive match,
false for a negative matchNullArgumentException - resourceId is
null mandatory - This method must be implemented. void clearProviderIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsProviderQuery()
ResourceQuery for the provider is available. true if a resource query is available,
false otherwisemandatory - This method must be implemented. ResourceQuery getProviderQuery(boolean match)
OR. match - true if for a positive match,
false for a negative matchUnimplementedException - supportsProviderQuery()
is false optional - This method must be implemented if
supportsProviderQuery() is true. void matchAnyProvider(boolean match)
match - true to match sourceables with any
provider, false to match sourceables with no
providersmandatory - This method must be implemented. void clearProviderTerms()
mandatory - This method must be implemented. void matchBrandingId(Id assetId, boolean match)
Id of an asset used for branding.assetId - Id to matchmatch - true if for a positive match,
false for a negative matchNullArgumentException - assetId is
null mandatory - This method must be implemented. void clearBrandingIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsBrandingQuery()
AssetQuery for the branding is available. true if a asset query is available,
false otherwisemandatory - This method must be implemented. AssetQuery getBrandingQuery(boolean match)
OR. match - true if for a positive match,
false for a negative matchUnimplementedException - supportsBrandingQuery()
is false optional - This method must be implemented if
supportsBrandingQuery() is true. void matchAnyBranding(boolean match)
match - true to match any asset, false
to match no assetsmandatory - This method must be implemented. void clearBrandingTerms()
mandatory - This method must be implemented. void matchLicense(java.lang.String license,
Type stringMatchType,
boolean match)
OR among them.license - a string to matchstringMatchType - the string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - license is
not of stringMatchType NullArgumentException - license or
stringMatchType is null UnsupportedException -
supportsStringMatchType(stringMatchType) is
false mandatory - This method must be implemented. void matchAnyLicense(boolean match)
match - true to match any license, false
to match objects with no licensemandatory - This method must be implemented. void clearLicenseTerms()
mandatory - This method must be implemented.