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 SummaryNested Classes Modifier and Type Class Description static classServiceKeyExtractor.SetWrapper<T>Efficiently wrap a single value as a Set.
 - 
Field SummaryFields 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.IKeyExtractorMATCH_ALWAYS
 
- 
 - 
Constructor SummaryConstructors Constructor Description ServiceKeyExtractor()
 - 
Method SummaryAll 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_INTERFACEpublic static final java.lang.String KEY_TYPE_INTERFACE Key type for the service interface.- See Also:
- Constant Field Values
 
 - 
KEY_TYPE_TAGSpublic static final java.lang.String KEY_TYPE_TAGS Key type for the service tags.- See Also:
- Constant Field Values
 
 - 
KEY_TYPE_PROVIDERpublic static final java.lang.String KEY_TYPE_PROVIDER Key type for the service provider.- See Also:
- Constant Field Values
 
 - 
KEY_TYPE_PLATFORMpublic static final java.lang.String KEY_TYPE_PLATFORM Key type for the service platform.- See Also:
- Constant Field Values
 
 - 
KEY_TYPE_SIDpublic static final java.lang.String KEY_TYPE_SID Key type for the service id.- See Also:
- Constant Field Values
 
 - 
KEY_TYPE_NETWORKSpublic static final java.lang.String KEY_TYPE_NETWORKS Key type for the networks.- See Also:
- Constant Field Values
 
 - 
KEY_TYPE_UNRESTRICTEDpublic static final java.lang.String KEY_TYPE_UNRESTRICTED Key type for the unrestricted mode.- See Also:
- Constant Field Values
 
 - 
SERVICE_KEY_TYPESpublic static final java.lang.String[] SERVICE_KEY_TYPES The key types.
 
- 
 - 
Method Detail- 
getKeyValuespublic java.util.Set<java.lang.String> getKeyValues(java.lang.String keytype, IServiceIdentifier serv)Extracts keys from a service.- Specified by:
- getKeyValuesin interface- IKeyExtractor<IServiceIdentifier>
- Parameters:
- keytype- The type of key being extracted.
- service- The service.
- Returns:
- The keys matching the type.
 
 - 
getKeyNamespublic java.lang.String[] getKeyNames() Get the key names for this type of extractor.- Specified by:
- getKeyNamesin interface- IKeyExtractor<IServiceIdentifier>
- Returns:
- The key names.
 
 - 
getKeysStaticpublic 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.
 
 - 
getKeyMatchingModepublic 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 interface- IKeyExtractor<IServiceIdentifier>
- Parameters:
- keytype- The type of key being extracted.
- value- The value.
- Returns:
- The key matching mode.
 
 
- 
 
-