1 19 20 package org.netbeans.modules.web.jsf.impl.facesmodel; 21 22 import org.netbeans.modules.web.jsf.api.facesmodel.JSFConfigVisitor; 23 import org.netbeans.modules.web.jsf.api.facesmodel.ManagedBean; 24 import org.w3c.dom.Element ; 25 26 30 public class ManagedBeanImpl extends JSFConfigComponentImpl.ComponentInfoImpl implements ManagedBean { 31 32 33 public ManagedBeanImpl(JSFConfigModelImpl model,Element element) { 34 super(model, element); 35 } 36 37 public ManagedBeanImpl(JSFConfigModelImpl model) { 38 this(model, createElementNS(model, JSFConfigQNames.MANAGED_BEAN)); 39 } 40 41 public String getManagedBeanName() { 42 return getChildElementText(JSFConfigQNames.MANAGED_BEAN_NAME.getQName(getModel().getVersion())); 43 } 44 45 public void setManagedBeanName(String name) { 46 setChildElementText(MANAGED_BEAN_NAME, name, JSFConfigQNames.MANAGED_BEAN_NAME.getQName(getModel().getVersion())); 47 } 48 49 public String getManagedBeanClass() { 50 return getChildElementText(JSFConfigQNames.MANAGED_BEAN_CLASS.getQName(getModel().getVersion())); 51 } 52 53 public void setManagedBeanClass(String beanClass) { 54 setChildElementText(MANAGED_BEAN_CLASS, beanClass, JSFConfigQNames.MANAGED_BEAN_CLASS.getQName(getModel().getVersion())); 55 } 56 57 public String getManagedBeanScope() { 58 return getChildElementText(JSFConfigQNames.MANAGED_BEAN_SCOPE.getQName(getModel().getVersion())); 59 } 60 61 public void setManagedBeanScope(String scope) { 62 setChildElementText(MANAGED_BEAN_SCOPE, scope, JSFConfigQNames.MANAGED_BEAN_SCOPE.getQName(getModel().getVersion())); 63 } 64 65 public void accept(JSFConfigVisitor visitor) { 66 visitor.visit(this); 67 } 68 } 69 | Popular Tags |