Package jadex.bridge.service.search
Class ServiceKeyExtractor
- java.lang.Object
 - 
- jadex.bridge.service.search.ServiceKeyExtractor
 
 
- 
- All Implemented Interfaces:
 IKeyExtractor<IServiceIdentifier>
public class ServiceKeyExtractor extends java.lang.Object implements IKeyExtractor<IServiceIdentifier>
Responsible for extracting values. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServiceKeyExtractor.SetWrapper<T>Efficiently wrap a single value as a Set. 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringKEY_TYPE_INTERFACEKey type for the service interface.static java.lang.StringKEY_TYPE_NETWORKSKey type for the networks.static java.lang.StringKEY_TYPE_PLATFORMKey type for the service platform.static java.lang.StringKEY_TYPE_PROVIDERKey type for the service provider.static java.lang.StringKEY_TYPE_SIDKey type for the service id.static java.lang.StringKEY_TYPE_TAGSKey type for the service tags.static java.lang.StringKEY_TYPE_UNRESTRICTEDKey type for the unrestricted mode.static java.lang.String[]SERVICE_KEY_TYPESThe key types.- 
Fields inherited from interface jadex.bridge.service.search.IKeyExtractor
MATCH_ALWAYS 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ServiceKeyExtractor() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.BooleangetKeyMatchingMode(java.lang.String keytype, IServiceIdentifier value)Extracts the matching mode from a multivalued term.java.lang.String[]getKeyNames()Get the key names for this type of extractor.static java.util.Set<java.lang.String>getKeysStatic(java.lang.String keytype, IServiceIdentifier serv)Extracts keys from a service.java.util.Set<java.lang.String>getKeyValues(java.lang.String keytype, IServiceIdentifier serv)Extracts keys from a service. 
 - 
 
- 
- 
Field Detail
- 
KEY_TYPE_INTERFACE
public static final java.lang.String KEY_TYPE_INTERFACE
Key type for the service interface.- See Also:
 - Constant Field Values
 
 
- 
KEY_TYPE_TAGS
public static final java.lang.String KEY_TYPE_TAGS
Key type for the service tags.- See Also:
 - Constant Field Values
 
 
- 
KEY_TYPE_PROVIDER
public static final java.lang.String KEY_TYPE_PROVIDER
Key type for the service provider.- See Also:
 - Constant Field Values
 
 
- 
KEY_TYPE_PLATFORM
public static final java.lang.String KEY_TYPE_PLATFORM
Key type for the service platform.- See Also:
 - Constant Field Values
 
 
- 
KEY_TYPE_SID
public static final java.lang.String KEY_TYPE_SID
Key type for the service id.- See Also:
 - Constant Field Values
 
 
- 
KEY_TYPE_NETWORKS
public static final java.lang.String KEY_TYPE_NETWORKS
Key type for the networks.- See Also:
 - Constant Field Values
 
 
- 
KEY_TYPE_UNRESTRICTED
public static final java.lang.String KEY_TYPE_UNRESTRICTED
Key type for the unrestricted mode.- See Also:
 - Constant Field Values
 
 
- 
SERVICE_KEY_TYPES
public static final java.lang.String[] SERVICE_KEY_TYPES
The key types. 
 - 
 
- 
Method Detail
- 
getKeyValues
public java.util.Set<java.lang.String> getKeyValues(java.lang.String keytype, IServiceIdentifier serv)Extracts keys from a service.- Specified by:
 getKeyValuesin interfaceIKeyExtractor<IServiceIdentifier>- Parameters:
 keytype- The type of key being extracted.service- The service.- Returns:
 - The keys matching the type.
 
 
- 
getKeyNames
public java.lang.String[] getKeyNames()
Get the key names for this type of extractor.- Specified by:
 getKeyNamesin interfaceIKeyExtractor<IServiceIdentifier>- Returns:
 - The key names.
 
 
- 
getKeysStatic
public static final java.util.Set<java.lang.String> getKeysStatic(java.lang.String keytype, IServiceIdentifier serv)Extracts keys from a service.- Parameters:
 keytype- The type of key being extracted.service- The service.- Returns:
 - The keys matching the type.
 
 
- 
getKeyMatchingMode
public java.lang.Boolean getKeyMatchingMode(java.lang.String keytype, IServiceIdentifier value)Extracts the matching mode from a multivalued term. true = AND, false = OR- Specified by:
 getKeyMatchingModein interfaceIKeyExtractor<IServiceIdentifier>- Parameters:
 keytype- The type of key being extracted.value- The value.- Returns:
 - The key matching mode.
 
 
 - 
 
 -