public class ServiceKeyExtractor extends java.lang.Object implements IKeyExtractor<IServiceIdentifier>
Modifier and Type | Class and Description |
---|---|
static class |
ServiceKeyExtractor.SetWrapper<T>
Efficiently wrap a single value as a Set.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_TYPE_INTERFACE
Key type for the service interface.
|
static java.lang.String |
KEY_TYPE_NETWORKS
Key type for the networks.
|
static java.lang.String |
KEY_TYPE_PLATFORM
Key type for the service platform.
|
static java.lang.String |
KEY_TYPE_PROVIDER
Key type for the service provider.
|
static java.lang.String |
KEY_TYPE_SID
Key type for the service id.
|
static java.lang.String |
KEY_TYPE_TAGS
Key type for the service tags.
|
static java.lang.String |
KEY_TYPE_UNRESTRICTED
Key type for the unrestricted mode.
|
static java.lang.String[] |
SERVICE_KEY_TYPES
The key types.
|
MATCH_ALWAYS
Constructor and Description |
---|
ServiceKeyExtractor() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getKeyMatchingMode(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.
|
public static final java.lang.String KEY_TYPE_INTERFACE
public static final java.lang.String KEY_TYPE_TAGS
public static final java.lang.String KEY_TYPE_PROVIDER
public static final java.lang.String KEY_TYPE_PLATFORM
public static final java.lang.String KEY_TYPE_SID
public static final java.lang.String KEY_TYPE_NETWORKS
public static final java.lang.String KEY_TYPE_UNRESTRICTED
public static final java.lang.String[] SERVICE_KEY_TYPES
public java.util.Set<java.lang.String> getKeyValues(java.lang.String keytype, IServiceIdentifier serv)
getKeyValues
in interface IKeyExtractor<IServiceIdentifier>
keytype
- The type of key being extracted.service
- The service.public java.lang.String[] getKeyNames()
getKeyNames
in interface IKeyExtractor<IServiceIdentifier>
public static final java.util.Set<java.lang.String> getKeysStatic(java.lang.String keytype, IServiceIdentifier serv)
keytype
- The type of key being extracted.service
- The service.public java.lang.Boolean getKeyMatchingMode(java.lang.String keytype, IServiceIdentifier value)
getKeyMatchingMode
in interface IKeyExtractor<IServiceIdentifier>
keytype
- The type of key being extracted.value
- The value.