Class SubProperties
- java.lang.Object
-
- com.yahoo.processing.request.Properties
-
- com.yahoo.search.query.Properties
-
- com.yahoo.search.query.properties.SubProperties
-
- All Implemented Interfaces:
java.lang.Cloneable
public class SubProperties extends Properties
A wrapper around a chain of property objects that prefixes all gets/sets with a given path- Author:
- Arne Bergene Fossaa
-
-
Constructor Summary
Constructors Constructor Description SubProperties(com.yahoo.processing.request.CompoundName pathPrefix, com.yahoo.processing.request.Properties properties)
SubProperties(java.lang.String pathPrefix, com.yahoo.processing.request.Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(com.yahoo.processing.request.CompoundName key, java.util.Map<java.lang.String,java.lang.String> context, com.yahoo.processing.request.Properties substitution)
java.lang.String
getPathPrefix()
Returns getPatchPrefixCompound.toString()com.yahoo.processing.request.CompoundName
getPathPrefixCompound()
java.util.Map<java.lang.String,java.lang.Object>
listProperties(com.yahoo.processing.request.CompoundName path, java.util.Map<java.lang.String,java.lang.String> context, com.yahoo.processing.request.Properties substitution)
void
set(com.yahoo.processing.request.CompoundName key, java.lang.Object obj, java.util.Map<java.lang.String,java.lang.String> context)
-
Methods inherited from class com.yahoo.search.query.Properties
chained, clone, getParentQuery, setParentQuery
-
Methods inherited from class com.yahoo.processing.request.Properties
asBoolean, asDouble, asInteger, asLong, asString, chain, clearAll, clearAll, clearAll, clearAll, 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
-
-
-
-
Method Detail
-
get
public java.lang.Object get(com.yahoo.processing.request.CompoundName key, java.util.Map<java.lang.String,java.lang.String> context, com.yahoo.processing.request.Properties substitution)
- Overrides:
get
in classcom.yahoo.processing.request.Properties
-
set
public void set(com.yahoo.processing.request.CompoundName key, java.lang.Object obj, java.util.Map<java.lang.String,java.lang.String> context)
- Overrides:
set
in classcom.yahoo.processing.request.Properties
-
listProperties
public java.util.Map<java.lang.String,java.lang.Object> listProperties(com.yahoo.processing.request.CompoundName path, java.util.Map<java.lang.String,java.lang.String> context, com.yahoo.processing.request.Properties substitution)
- Overrides:
listProperties
in classcom.yahoo.processing.request.Properties
-
getPathPrefixCompound
public com.yahoo.processing.request.CompoundName getPathPrefixCompound()
-
getPathPrefix
public java.lang.String getPathPrefix()
Returns getPatchPrefixCompound.toString()
-
-