Package com.sodius.oslc.core.model
Class OslcCore.Finder<T>
java.lang.Object
com.sodius.oslc.core.model.OslcCore.Finder<T>
- Type Parameters:
T- the type of capability to search for.
- Enclosing class:
OslcCore
Enables finding a capability provided by an OSLC service based on some criteria.
-
Method Summary
Modifier and TypeMethodDescriptionfinal OslcCore.Finder<T>Filters the capabilities to retain only the ones whose usage is"http://open-services.net/ns/core#default".final OslcCore.Finder<T>Filters the services to retain only the ones declaring given domain.final OslcCore.Finder<T>excludeResourceType(URI resourceType) Filters the capabilities to reject the ones declaring given resource type.final OslcCore.Finder<T>excludeUsage(URI usage) Filters the capabilities to reject the ones declaring given usage.findAll()Returns all capabilities matching the specified criteria.final TReturns the first capability matching the specified criteria.static OslcCore.Finder<Dialog>forCreationDialogs(Service service) Returns a finder that can search for creation dialogs.static OslcCore.Finder<CreationFactory>forCreationFactories(Service service) Returns a finder that can search for creation factories.static OslcCore.Finder<QueryCapability>forQueryCapabilities(Service service) Returns a finder that can search for query capabilities.static OslcCore.Finder<Dialog>forSelectionDialogs(Service service) Returns a finder that can search for selection dialogs.static OslcCore.Finder<Service>forServices(ServiceProvider serviceProvider) Returns a finder that can search for services.final OslcCore.Finder<T>Filters the capabilities to retain only the ones verifying the given predicate.final OslcCore.Finder<T>resourceType(URI resourceType) Filters the capabilities to retain only the ones declaring given resource type.final OslcCore.Finder<T>Filters the capabilities to retain only the ones declaring given usage.
-
Method Details
-
forServices
Returns a finder that can search for services.- Parameters:
serviceProvider- the provider declaring services.- Returns:
- a finder that can search for services.
-
forSelectionDialogs
Returns a finder that can search for selection dialogs.- Parameters:
service- the service declaring selection dialogs.- Returns:
- a finder that can search for selection dialogs.
-
forCreationDialogs
Returns a finder that can search for creation dialogs.- Parameters:
service- the service declaring creation dialogs.- Returns:
- a finder that can search for creation dialogs.
-
forCreationFactories
Returns a finder that can search for creation factories.- Parameters:
service- the service declaring creation factories.- Returns:
- a finder that can search for creation factories.
-
forQueryCapabilities
Returns a finder that can search for query capabilities.- Parameters:
service- the service declaring query capabilities.- Returns:
- a finder that can search for query capabilities.
-
defaultUsage
Filters the capabilities to retain only the ones whose usage is"http://open-services.net/ns/core#default".- Returns:
- the finder instance.
-
domain
Filters the services to retain only the ones declaring given domain.- Parameters:
domain- the domain that the services must define.- Returns:
- the find instance.
-
usage
Filters the capabilities to retain only the ones declaring given usage.- Parameters:
usage- the usage that the capabilities must declare.- Returns:
- the finder instance.
-
excludeUsage
Filters the capabilities to reject the ones declaring given usage.- Parameters:
usage- the usage that the capabilities must not declare.- Returns:
- the finder instance.
- Since:
- 1.11.0
-
resourceType
Filters the capabilities to retain only the ones declaring given resource type.- Parameters:
resourceType- the resource type the capabilities must declare.- Returns:
- the finder instance.
-
excludeResourceType
Filters the capabilities to reject the ones declaring given resource type.- Parameters:
resourceType- the resource type the capabilities must not declare.- Returns:
- the finder instance.
- Since:
- 1.11.0
-
predicate
Filters the capabilities to retain only the ones verifying the given predicate.- Parameters:
predicate- the predicate the capabilities must verify.- Returns:
- the finder instance.
- Since:
- 1.11.0
-
findAll
Returns all capabilities matching the specified criteria.- Returns:
- the list of capabilities matching the specified criteria.
-
findFirst
Returns the first capability matching the specified criteria.- Returns:
- the first capability matching the specified criteria,
nullif none.
-