public class NamespacedExtractor extends LookupExtractor
Constructor and Description |
---|
NamespacedExtractor(com.google.common.base.Function<String,com.google.common.base.Function<String,String>> namespaces,
com.google.common.base.Function<String,com.google.common.base.Function<String,List<String>>> reverseNamespaces,
String namespace) |
Modifier and Type | Method and Description |
---|---|
String |
apply(String value)
Apply a particular lookup methodology to the input string
|
byte[] |
getCacheKey()
Create a cache key for use in results caching
|
String |
getNamespace() |
List<String> |
unapply(String value)
Provide the reverse mapping from a given value to a list of keys
|
applyAll, unapplyAll
public NamespacedExtractor(@NotNull com.google.common.base.Function<String,com.google.common.base.Function<String,String>> namespaces, @NotNull com.google.common.base.Function<String,com.google.common.base.Function<String,List<String>>> reverseNamespaces, @NotNull String namespace)
public String getNamespace()
public byte[] getCacheKey()
LookupExtractor
getCacheKey
in class LookupExtractor
public String apply(String value)
LookupExtractor
apply
in class LookupExtractor
value
- The value to apply the lookup to. May not be nullpublic List<String> unapply(@NotNull String value)
LookupExtractor
unapply
in class LookupExtractor
value
- the value to apply the reverse lookup
Null and empty are considered to be the same value = nullToEmpty(value)Copyright © 2011–2016. All rights reserved.