1 26 27 package org.objectweb.util.browser.core.info; 28 29 import org.objectweb.util.browser.core.api.BrowserProperty; 30 import org.objectweb.util.browser.core.api.InfoFactory; 31 import org.objectweb.util.browser.core.api.Role; 32 import org.objectweb.util.browser.core.common.DefaultPropertyContainer; 33 import org.objectweb.util.browser.core.common.ExtendedBoolean; 34 import org.objectweb.util.browser.api.Entry; 35 36 44 public class InfoPropertyContainer 45 extends DefaultPropertyContainer { 46 47 53 59 63 public InfoPropertyContainer(BrowserProperty loader) { 64 super(loader); 65 } 66 67 73 78 protected Entry getElement(String className, Role role, ExtendedBoolean nodeFound) { 79 return loader_.getInfo(className, role, nodeFound); 80 } 81 82 89 protected void addEntry(String id, InfoFactory object) { 90 super.addEntry(id, object); 91 } 92 93 99 105 114 public void addEntry(String id, Object object) { 115 if (object != null) { 116 addEntry(id, (InfoFactory) object); 117 } 118 } 119 120 } | Popular Tags |