public class PropertyAliases extends Properties
Aliases are case insensitive. One standard name may have multiple aliases.
This is multithread safe or not depending on the status of the passed map of aliases. Cloning will not deep copy the set of aliases.
Modifier and Type | Field and Description |
---|---|
private Map<String,com.yahoo.processing.request.CompoundName> |
aliases
A map from aliases to standard names
|
Constructor and Description |
---|
PropertyAliases(Map<String,com.yahoo.processing.request.CompoundName> aliases)
Creates an instance with a set of aliases.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(com.yahoo.processing.request.CompoundName name,
Map<String,String> context,
com.yahoo.processing.request.Properties substitution) |
Map<String,Object> |
listProperties(com.yahoo.processing.request.CompoundName property,
Map<String,String> context,
com.yahoo.processing.request.Properties substitution) |
void |
set(com.yahoo.processing.request.CompoundName name,
Object value,
Map<String,String> context) |
protected com.yahoo.processing.request.CompoundName |
unalias(com.yahoo.processing.request.CompoundName nameOrAlias)
Returns the standard name for an alias, or the given name if it is not a registered alias
|
chained, clone, getParentQuery, setParentQuery
asBoolean, asDouble, asInteger, asLong, asString, chain, clone, cloneMap, get, get, get, get, get, get, get, getBoolean, getBoolean, getBoolean, getBoolean, getDouble, getDouble, getDouble, getDouble, getInstance, getInteger, getInteger, getInteger, getInteger, getLong, getLong, getLong, getLong, getString, getString, getString, getString, listProperties, listProperties, listProperties, listProperties, listProperties, listProperties, listProperties, set, set, set
protected com.yahoo.processing.request.CompoundName unalias(com.yahoo.processing.request.CompoundName nameOrAlias)
nameOrAlias
- the name to check if is an aliaspublic Map<String,Object> listProperties(com.yahoo.processing.request.CompoundName property, Map<String,String> context, com.yahoo.processing.request.Properties substitution)
listProperties
in class com.yahoo.processing.request.Properties
public Object get(com.yahoo.processing.request.CompoundName name, Map<String,String> context, com.yahoo.processing.request.Properties substitution)
get
in class com.yahoo.processing.request.Properties
Copyright © 2018. All rights reserved.