1 26 27 package org.objectweb.util.browser.core.info; 28 29 import org.objectweb.util.browser.api.Entry; 30 import org.objectweb.util.browser.api.Info; 31 import org.objectweb.util.browser.core.api.AssociatedInfo; 32 import org.objectweb.util.browser.core.api.BrowserProperty; 33 import org.objectweb.util.browser.core.api.InfoFactory; 34 import org.objectweb.util.browser.core.common.AssociatedElementImpl; 35 36 44 public class AssociatedInfoImpl 45 extends AssociatedElementImpl 46 implements AssociatedInfo { 47 48 54 60 64 public AssociatedInfoImpl(BrowserProperty loader) { 65 super(); 66 context_ = new InfoPropertyContainer(loader); 67 } 68 69 75 81 82 public Info getInfo(Object node, boolean disabledJavaLangObject) { 83 if (context_ != null) { 84 Entry entry = context_.getRecursiveProperty(node); 85 if (entry != null && !(entry.getName().toString().equals("java.lang.Object") && disabledJavaLangObject)) { 86 InfoFactory infoFactory = (InfoFactory) entry.getValue(); 87 return infoFactory.newInfo(node); 88 } 89 } 90 return null; 91 } 92 93 public Info getInfo(Object node) { 94 return getInfo(node,false); 95 } 96 97 } 98 99 | Popular Tags |