Class ServiceKeyExtractor

    • 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.
    • Constructor Detail

      • ServiceKeyExtractor

        public ServiceKeyExtractor()
    • Method Detail

      • getKeyValues

        public java.util.Set<java.lang.String> getKeyValues​(java.lang.String keytype,
                                                            IServiceIdentifier serv)
        Extracts keys from a service.
        Specified by:
        getKeyValues in interface IKeyExtractor<IServiceIdentifier>
        Parameters:
        keytype - The type of key being extracted.
        service - The service.
        Returns:
        The keys matching the type.
      • 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:
        getKeyMatchingMode in interface IKeyExtractor<IServiceIdentifier>
        Parameters:
        keytype - The type of key being extracted.
        value - The value.
        Returns:
        The key matching mode.