public SmooksResourceConfiguration createConfiguration() { SmooksResourceConfiguration config = new SmooksResourceConfiguration(); config.setParameter("executeBefore", Boolean.toString(executeBefore)); return config; }
public SmooksResourceConfiguration createConfiguration() { SmooksResourceConfiguration config = new SmooksResourceConfiguration(); config.setParameter("executeBefore", Boolean.toString(executeBefore)); return config; }
public SmooksResourceConfiguration createConfiguration() { SmooksResourceConfiguration config = new SmooksResourceConfiguration(); config.setParameter("executeBefore", Boolean.toString(executeBefore)); return config; }
public SmooksResourceConfiguration createConfiguration() { SmooksResourceConfiguration config = new SmooksResourceConfiguration(); config.setParameter("executeBefore", Boolean.toString(executeBefore)); return config; }
private void digestParams(Element paramsElement) { NodeList paramNodes = paramsElement.getElementsByTagName("param"); if(paramNodes.getLength() > 0) { SmooksResourceConfiguration globalParamsConfig = new SmooksResourceConfiguration(ParameterAccessor.GLOBAL_PARAMETERS); digestParameters(paramsElement, globalParamsConfig); resourcelist.add(globalParamsConfig); } }
private void digestParams(Element paramsElement) { NodeList paramNodes = paramsElement.getElementsByTagName("param"); if(paramNodes.getLength() > 0) { SmooksResourceConfiguration globalParamsConfig = new SmooksResourceConfiguration(ParameterAccessor.GLOBAL_PARAMETERS); digestParameters(paramsElement, globalParamsConfig); resourcelist.add(globalParamsConfig); } }
private void digestParams(Element paramsElement) { NodeList paramNodes = paramsElement.getElementsByTagName("param"); if(paramNodes.getLength() > 0) { SmooksResourceConfiguration globalParamsConfig = new SmooksResourceConfiguration(ParameterAccessor.GLOBAL_PARAMETERS); digestParameters(paramsElement, globalParamsConfig); resourcelist.add(globalParamsConfig); } }
public static void setParameter(String name, String value, Smooks smooks) { SmooksResourceConfiguration config = new SmooksResourceConfiguration(ParameterAccessor.GLOBAL_PARAMETERS); config.setParameter(name, value); SmooksUtil.registerResource(config, smooks); }
public static void setParameter(String name, String value, Smooks smooks) { SmooksResourceConfiguration config = new SmooksResourceConfiguration(ParameterAccessor.GLOBAL_PARAMETERS); config.setParameter(name, value); SmooksUtil.registerResource(config, smooks); }
public static void setParameter(String name, String value, Smooks smooks) { SmooksResourceConfiguration config = new SmooksResourceConfiguration(ParameterAccessor.GLOBAL_PARAMETERS); config.setParameter(name, value); SmooksUtil.registerResource(config, smooks); }
public static void setParameter(String name, String value, Smooks smooks) { SmooksResourceConfiguration config = new SmooksResourceConfiguration(ParameterAccessor.GLOBAL_PARAMETERS); config.setParameter(name, value); SmooksUtil.registerResource(config, smooks); }
private void addHandlerFactoryConfig(Class handlerFactory, String type) { SmooksResourceConfiguration res = new SmooksResourceConfiguration(CDU_CREATOR); res.setTargetProfile("*"); res.setResource(handlerFactory.getName()); res.setParameter(ContentHandlerFactory.PARAM_RESTYPE, type); defaultList.add(res); }
private void addHandlerFactoryConfig(Class handlerFactory, String type) { SmooksResourceConfiguration res = new SmooksResourceConfiguration(CDU_CREATOR); res.setTargetProfile("*"); res.setResource(handlerFactory.getName()); res.setParameter(ContentHandlerFactory.PARAM_RESTYPE, type); defaultList.add(res); }
private void addHandlerFactoryConfig(Class handlerFactory, String type) { SmooksResourceConfiguration res = new SmooksResourceConfiguration(CDU_CREATOR); res.setTargetProfile("*"); res.setResource(handlerFactory.getName()); res.setParameter(ContentHandlerFactory.PARAM_RESTYPE, type); defaultList.add(res); }
private void addHandlerFactoryConfig(Class handlerFactory, String type) { SmooksResourceConfiguration res = new SmooksResourceConfiguration(CDU_CREATOR); res.setTargetProfile("*"); res.setResource(handlerFactory.getName()); res.setParameter(ContentHandlerFactory.PARAM_RESTYPE, type); defaultList.add(res); }
private void digestReaderConfig(Element configElement, String defaultProfile) { String profiles = DomUtils.getAttributeValue(configElement, "targetProfile"); String readerClass = DomUtils.getAttributeValue(configElement, "class"); SmooksResourceConfiguration resourceConfig = new SmooksResourceConfiguration( "org.xml.sax.driver", (profiles != null ? profiles : defaultProfile), readerClass); // Add the reader resource... configureHandlers(configElement, resourceConfig); configureFeatures(configElement, resourceConfig); configureParams(configElement, resourceConfig); resourcelist.add(resourceConfig); }
private void digestReaderConfig(Element configElement, String defaultProfile) { String profiles = DomUtils.getAttributeValue(configElement, "targetProfile"); String readerClass = DomUtils.getAttributeValue(configElement, "class"); SmooksResourceConfiguration resourceConfig = new SmooksResourceConfiguration( "org.xml.sax.driver", (profiles != null ? profiles : defaultProfile), readerClass); // Add the reader resource... configureHandlers(configElement, resourceConfig); configureFeatures(configElement, resourceConfig); configureParams(configElement, resourceConfig); resourcelist.add(resourceConfig); }
/** * Used by Smooks to retrieve the visitor configuration of this Value Configuration */ public void addVisitors(VisitorConfigMap visitorMap) { ValueBinder binder = new ValueBinder(getBeanId()); SmooksResourceConfiguration populatorConfig = new SmooksResourceConfiguration(dataSelector); SelectorPropertyResolver.resolveSelectorTokens(populatorConfig); binder.setDecoder(decoder); binder.setDefaultValue(defaultValue); binder.setValueAttributeName(populatorConfig.getStringParameter(BeanInstancePopulator.VALUE_ATTRIBUTE_NAME)); visitorMap.addVisitor(binder, populatorConfig.getSelector(), targetNamespace, true); }
/** * Used by Smooks to retrieve the visitor configuration of this Value Configuration */ public void addVisitors(VisitorConfigMap visitorMap) { ValueBinder binder = new ValueBinder(getBeanId()); SmooksResourceConfiguration populatorConfig = new SmooksResourceConfiguration(dataSelector); SelectorPropertyResolver.resolveSelectorTokens(populatorConfig); binder.setDecoder(decoder); binder.setDefaultValue(defaultValue); binder.setValueAttributeName(populatorConfig.getStringParameter(BeanInstancePopulator.VALUE_ATTRIBUTE_NAME)); visitorMap.addVisitor(binder, populatorConfig.getSelector(), targetNamespace, true); }
/** * Used by Smooks to retrieve the visitor configuration of this Value Configuration */ public void addVisitors(VisitorConfigMap visitorMap) { ValueBinder binder = new ValueBinder(getBeanId()); SmooksResourceConfiguration populatorConfig = new SmooksResourceConfiguration(dataSelector); SelectorPropertyResolver.resolveSelectorTokens(populatorConfig); binder.setDecoder(decoder); binder.setDefaultValue(defaultValue); binder.setValueAttributeName(populatorConfig.getStringParameter(BeanInstancePopulator.VALUE_ATTRIBUTE_NAME)); visitorMap.addVisitor(binder, populatorConfig.getSelector(), targetNamespace, true); }