@Test public void testMarshal() throws Exception { ComponentLibrary library = new ComponentLibrary(); ConverterModel converterModel = new ConverterModel(FacesId.parseId("my_converter")); converterModel.setTargetClass(ClassName.parseName(Object.class.getName())); library.getConverters().add(converterModel); StringWriter facesConfig = generateFacesConfig(library); checkXmlStructure(facesConfig); validateXml(facesConfig); }
public void setTargetClass(ClassName converterClass) { this.targetClass = converterClass; }
ConverterBean extends ElementBeanBase<ConverterBean.ConverterExtension> { public void setTargetClass(ClassName converterClass) { this.targetClass = converterClass; } }
ConverterBean extends ElementBeanBase<ConverterBean.ConverterExtension> { public void setTargetClass(ClassName converterClass) { this.targetClass = converterClass; }  }
ConverterBean extends ElementBeanBase<ConverterBean.ConverterExtension> { public void setTargetClass(ClassName converterClass) { this.targetClass = converterClass; }  @XmlElement(name = "converter-id", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE) FacesId getId(); void setId(FacesId id); @Override @XmlElement(name = "property", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE, type = PropertyBean.class) @XmlJavaTypeAdapter(PropertyAdapter.class) Collection<PropertyModel> getProperties(); @Override @XmlElement(name = "attribute", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE, type = AttributeBean.class) @XmlJavaTypeAdapter(AttributeAdapter.class) Collection<AttributeModel> getFacesAttributes(); @XmlElement(name = "converter-for-class", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE) ClassName getConverterForClass(); void setConverterForClass(ClassName converterForClass); @XmlElement(name = "converter-class", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE) ClassName getTargetClass(); void setTargetClass(ClassName converterClass); @Override void setExtension(ConverterExtension extension); @XmlElement(name = "converter-extension", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE, nillable = true) @Override ConverterExtension getExtension(); }
ConverterBean extends ElementBeanBase<ConverterBean.ConverterExtension> { public void setTargetClass(ClassName converterClass) { this.targetClass = converterClass; }  @XmlElement(name = "converter-id", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE) FacesId getId(); void setId(FacesId id); @Override @XmlElement(name = "property", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE, type = PropertyBean.class) @XmlJavaTypeAdapter(PropertyAdapter.class) Collection<PropertyModel> getProperties(); @Override @XmlElement(name = "attribute", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE, type = AttributeBean.class) @XmlJavaTypeAdapter(AttributeAdapter.class) Collection<AttributeModel> getFacesAttributes(); @XmlElement(name = "converter-for-class", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE) ClassName getConverterForClass(); void setConverterForClass(ClassName converterForClass); @XmlElement(name = "converter-class", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE) ClassName getTargetClass(); void setTargetClass(ClassName converterClass); @Override void setExtension(ConverterExtension extension); @XmlElement(name = "converter-extension", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE, nillable = true) @Override ConverterExtension getExtension();  }