Example #1
0
        public virtual RawPropertyData flatten(ConfigurationManager cm)
        {
            RawPropertyData rawPropertyData = new RawPropertyData(this.name, this.className);
            Iterator        iterator        = this.properties.entrySet().iterator();

            while (iterator.hasNext())
            {
                Map.Entry entry = (Map.Entry)iterator.next();
                object    obj   = entry.getValue();
                if (obj is string && String.instancehelper_startsWith((string)obj, "_{"))
                {
                    obj = cm.getGloPropReference(ConfigurationManagerUtils.stripGlobalSymbol((string)obj));
                }
                rawPropertyData.properties.put(entry.getKey(), obj);
            }
            return(rawPropertyData);
        }
 public virtual string getStrippedComponentName(string propertyName)
 {
     if (!ConfigurationManager.assertionsDisabled && propertyName == null)
     {
         throw new AssertionError();
     }
     while (String.instancehelper_startsWith(propertyName, "_"))
     {
         propertyName = String.instancehelper_toString((string)this.globalProperties.get(ConfigurationManagerUtils.stripGlobalSymbol(propertyName)));
     }
     return(propertyName);
 }