Class SubProperties

  • All Implemented Interfaces:
    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​(String pathPrefix, com.yahoo.processing.request.Properties properties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Object get​(com.yahoo.processing.request.CompoundName key, Map<String,​String> context, com.yahoo.processing.request.Properties substitution)  
      String getPathPrefix()
      Returns getPatchPrefixCompound.toString()
      com.yahoo.processing.request.CompoundName getPathPrefixCompound()  
      Map<String,​Object> listProperties​(com.yahoo.processing.request.CompoundName path, Map<String,​String> context, com.yahoo.processing.request.Properties substitution)  
      void set​(com.yahoo.processing.request.CompoundName key, Object obj, Map<String,​String> context)  
      • 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
    • Constructor Detail

      • SubProperties

        public SubProperties​(String pathPrefix,
                             com.yahoo.processing.request.Properties properties)
      • SubProperties

        public SubProperties​(com.yahoo.processing.request.CompoundName pathPrefix,
                             com.yahoo.processing.request.Properties properties)
    • Method Detail

      • get

        public Object get​(com.yahoo.processing.request.CompoundName key,
                          Map<String,​String> context,
                          com.yahoo.processing.request.Properties substitution)
        Overrides:
        get in class com.yahoo.processing.request.Properties
      • set

        public void set​(com.yahoo.processing.request.CompoundName key,
                        Object obj,
                        Map<String,​String> context)
        Overrides:
        set in class com.yahoo.processing.request.Properties
      • listProperties

        public Map<String,​Object> listProperties​(com.yahoo.processing.request.CompoundName path,
                                                       Map<String,​String> context,
                                                       com.yahoo.processing.request.Properties substitution)
        Overrides:
        listProperties in class com.yahoo.processing.request.Properties
      • getPathPrefixCompound

        public com.yahoo.processing.request.CompoundName getPathPrefixCompound()
      • getPathPrefix

        public String getPathPrefix()
        Returns getPatchPrefixCompound.toString()