1 19 20 package org.netbeans.modules.web.jsf.impl.facesmodel; 21 22 import org.netbeans.modules.web.jsf.api.facesmodel.Converter; 23 import org.netbeans.modules.web.jsf.api.facesmodel.JSFConfigVisitor; 24 import org.w3c.dom.Element ; 25 26 30 public class ConverterImpl extends JSFConfigComponentImpl.ComponentInfoImpl implements Converter{ 31 32 33 public ConverterImpl(JSFConfigModelImpl model, Element element) { 34 super(model, element); 35 } 36 37 public ConverterImpl(JSFConfigModelImpl model) { 38 this(model, createElementNS(model, JSFConfigQNames.CONVERTER)); 39 } 40 41 public String getConverterClass() { 42 return getChildElementText(JSFConfigQNames.CONVERTER_CLASS.getQName(getModel().getVersion())); 43 } 44 45 public void setConverterClass(String value) { 46 setChildElementText(CONVERTER_CLASS, value, JSFConfigQNames.CONVERTER_CLASS.getQName(getModel().getVersion())); 47 } 48 49 public String getConverterForClass() { 50 return getChildElementText(JSFConfigQNames.CONVERTER_FOR_CLASS.getQName(getModel().getVersion())); 51 } 52 53 public void setConverterForClass(String value) { 54 setChildElementText(CONVERTER_FOR_CLASS, value, JSFConfigQNames.CONVERTER_FOR_CLASS.getQName(getModel().getVersion())); 55 } 56 57 public String getConverterId() { 58 return getChildElementText(JSFConfigQNames.CONVERTER_ID.getQName(getModel().getVersion())); 59 } 60 61 public void setConverterId(String value) { 62 setChildElementText(CONVERTER_ID, value, JSFConfigQNames.CONVERTER_ID.getQName(getModel().getVersion())); 63 } 64 65 public void accept(JSFConfigVisitor visitor) { 66 visitor.visit(this); 67 } 68 } 69 | Popular Tags |