Package jadex.bridge.service.search
Class QueryInfoExtractor
- java.lang.Object
- 
- jadex.bridge.service.search.QueryInfoExtractor
 
- 
- All Implemented Interfaces:
- IKeyExtractor<ServiceQueryInfo<?>>
 
 public class QueryInfoExtractor extends java.lang.Object implements IKeyExtractor<ServiceQueryInfo<?>> Extractor for query infos.
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringKEY_TYPE_IDKey type for the query id.static java.lang.StringKEY_TYPE_INTERFACEKey type for the service interface.static java.lang.StringKEY_TYPE_NETWORKSKey type for the id.static java.lang.StringKEY_TYPE_OWNERKey type for the owner.static java.lang.StringKEY_TYPE_OWNER_PLATORMKey type for the owner.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 services.static java.lang.String[]QUERY_KEY_TYPESThe key types.static java.lang.String[]QUERY_KEY_TYPES_INDEXABLEThe indexable types.- 
Fields inherited from interface jadex.bridge.service.search.IKeyExtractorMATCH_ALWAYS
 
- 
 - 
Constructor SummaryConstructors Constructor Description QueryInfoExtractor()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Tuple2<java.lang.String,java.lang.String[]>>getIndexerSpec(IServiceIdentifier sid)Gets the specification for the indexer.java.lang.BooleangetKeyMatchingMode(java.lang.String keytype, ServiceQueryInfo<?> query)Extracts the matching mode from a multivalued term.java.lang.String[]getKeyNames()Get the key names for this type of extractor.java.util.Set<java.lang.String>getKeyValues(java.lang.String keytype, ServiceQueryInfo<?> sqi)Get the keys per keytype.
 
- 
- 
- 
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_OWNERpublic static final java.lang.String KEY_TYPE_OWNER Key type for the owner.- 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_NETWORKSpublic static final java.lang.String KEY_TYPE_NETWORKS Key type for the id.- See Also:
- Constant Field Values
 
 - 
KEY_TYPE_OWNER_PLATORMpublic static final java.lang.String KEY_TYPE_OWNER_PLATORM Key type for the owner.- 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_IDpublic static final java.lang.String KEY_TYPE_ID Key type for the query id.- See Also:
- Constant Field Values
 
 - 
KEY_TYPE_UNRESTRICTEDpublic static final java.lang.String KEY_TYPE_UNRESTRICTED Key type for the unrestricted services.- See Also:
- Constant Field Values
 
 - 
QUERY_KEY_TYPESpublic static final java.lang.String[] QUERY_KEY_TYPES The key types.
 - 
QUERY_KEY_TYPES_INDEXABLEpublic static final java.lang.String[] QUERY_KEY_TYPES_INDEXABLE The indexable types.
 
- 
 - 
Method Detail- 
getKeyValuespublic java.util.Set<java.lang.String> getKeyValues(java.lang.String keytype, ServiceQueryInfo<?> sqi)Get the keys per keytype.- Specified by:
- getKeyValuesin interface- IKeyExtractor<ServiceQueryInfo<?>>
- Parameters:
- keytype- The key type.
- value- The value.
- Returns:
- The key values.
 
 - 
getKeyMatchingModepublic java.lang.Boolean getKeyMatchingMode(java.lang.String keytype, ServiceQueryInfo<?> query)Extracts the matching mode from a multivalued term. true = AND, false = OR- Specified by:
- getKeyMatchingModein interface- IKeyExtractor<ServiceQueryInfo<?>>
- Parameters:
- keytype- The type of key being extracted.
- value- The value.
- Returns:
- The key matching mode.
 
 - 
getKeyNamespublic java.lang.String[] getKeyNames() Get the key names for this type of extractor.- Specified by:
- getKeyNamesin interface- IKeyExtractor<ServiceQueryInfo<?>>
- Returns:
- The key names.
 
 - 
getIndexerSpecpublic java.util.List<Tuple2<java.lang.String,java.lang.String[]>> getIndexerSpec(IServiceIdentifier sid) Gets the specification for the indexer.- Returns:
- The specification for the indexer.
 
 
- 
 
-