Class ServiceKeyExtractor
java.lang.Object
jadex.providedservice.impl.search.ServiceKeyExtractor
- All Implemented Interfaces:
IKeyExtractor<IServiceIdentifier>
Responsible for extracting values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Efficiently wrap a single value as a Set. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Key type for the service interface.static final String
Key type for the networks.static final String
Key type for the service platform.static final String
Key type for the service provider.static final String
Key type for the service id.static final String
Key type for the service tags.static final String
Key type for the unrestricted mode.static final String[]
The key types.Fields inherited from interface jadex.providedservice.impl.search.IKeyExtractor
MATCH_ALWAYS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKeyMatchingMode
(String keytype, IServiceIdentifier value) Extracts the matching mode from a multivalued term.String[]
Get the key names for this type of extractor.getKeysStatic
(String keytype, IServiceIdentifier serv) Extracts keys from a service.getKeyValues
(String keytype, IServiceIdentifier serv) Extracts keys from a service.
-
Field Details
-
KEY_TYPE_INTERFACE
Key type for the service interface.- See Also:
-
KEY_TYPE_TAGS
Key type for the service tags.- See Also:
-
KEY_TYPE_PROVIDER
Key type for the service provider.- See Also:
-
KEY_TYPE_PLATFORM
Key type for the service platform.- See Also:
-
KEY_TYPE_SID
Key type for the service id.- See Also:
-
KEY_TYPE_NETWORKS
Key type for the networks.- See Also:
-
KEY_TYPE_UNRESTRICTED
Key type for the unrestricted mode.- See Also:
-
SERVICE_KEY_TYPES
The key types.
-
-
Constructor Details
-
ServiceKeyExtractor
public ServiceKeyExtractor()
-
-
Method Details
-
getKeyValues
Extracts keys from a service.- Specified by:
getKeyValues
in interfaceIKeyExtractor<IServiceIdentifier>
- Parameters:
keytype
- The type of key being extracted.serv
- The value.service
- The service.- Returns:
- The keys matching the type.
-
getKeyNames
Get the key names for this type of extractor.- Specified by:
getKeyNames
in interfaceIKeyExtractor<IServiceIdentifier>
- Returns:
- The key names.
-
getKeysStatic
Extracts keys from a service.- Parameters:
keytype
- The type of key being extracted.service
- The service.- Returns:
- The keys matching the type.
-
getKeyMatchingMode
Extracts the matching mode from a multivalued term. true = AND, false = OR- Specified by:
getKeyMatchingMode
in interfaceIKeyExtractor<IServiceIdentifier>
- Parameters:
keytype
- The type of key being extracted.value
- The value.- Returns:
- The key matching mode.
-