Class SubProperties

  • All Implemented Interfaces:

    public class SubProperties
    extends Properties
    A wrapper around a chain of property objects that prefixes all gets/sets with a given path
    Arne Bergene Fossaa
    • Constructor Summary

      Constructor Description
      SubProperties​( pathPrefix, properties)  
      SubProperties​(java.lang.String pathPrefix, properties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​( key, java.util.Map<java.lang.String,​java.lang.String> context, substitution)  
      java.lang.String getPathPrefix()
      Returns getPatchPrefixCompound.toString() getPathPrefixCompound()  
      java.util.Map<java.lang.String,​java.lang.Object> listProperties​( path, java.util.Map<java.lang.String,​java.lang.String> context, substitution)  
      void set​( key, java.lang.Object obj, java.util.Map<java.lang.String,​java.lang.String> context)  
      • Methods inherited from class

        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
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SubProperties

        public SubProperties​(java.lang.String pathPrefix,
      • SubProperties

        public SubProperties​( pathPrefix,
    • Method Detail

      • get

        public java.lang.Object get​( key,
                                    java.util.Map<java.lang.String,​java.lang.String> context,
        get in class
      • set

        public void set​( key,
                        java.lang.Object obj,
                        java.util.Map<java.lang.String,​java.lang.String> context)
        set in class
      • listProperties

        public java.util.Map<java.lang.String,​java.lang.Object> listProperties​( path,
                                                                                     java.util.Map<java.lang.String,​java.lang.String> context,
        listProperties in class
      • getPathPrefixCompound

        public getPathPrefixCompound()
      • getPathPrefix

        public java.lang.String getPathPrefix()
        Returns getPatchPrefixCompound.toString()