@Initialize public void createBeanWriter() { try { BeanWriter beanWriter = beanWriterClass.newInstance(); Configurator.configure(beanWriter, config, appContext); getBeanWriters(beanClass, appContext).put(config.getSelectorNamespaceURI(), beanWriter); } catch (InstantiationException e) { throw new SmooksConfigurationException("Unable to create BeanWriter instance.", e); } catch (IllegalAccessException e) { throw new SmooksConfigurationException("Unable to create BeanWriter instance.", e); } }
@Initialize public void createBeanWriter() { try { BeanWriter beanWriter = beanWriterClass.newInstance(); Configurator.configure(beanWriter, config, appContext); getBeanWriters(beanClass, appContext).put(config.getSelectorNamespaceURI(), beanWriter); } catch (InstantiationException e) { throw new SmooksConfigurationException("Unable to create BeanWriter instance.", e); } catch (IllegalAccessException e) { throw new SmooksConfigurationException("Unable to create BeanWriter instance.", e); } }
@Initialize public void createBeanWriter() { try { BeanWriter beanWriter = beanWriterClass.newInstance(); Configurator.configure(beanWriter, config, appContext); getBeanWriters(beanClass, appContext).put(config.getSelectorNamespaceURI(), beanWriter); } catch (InstantiationException e) { throw new SmooksConfigurationException("Unable to create BeanWriter instance.", e); } catch (IllegalAccessException e) { throw new SmooksConfigurationException("Unable to create BeanWriter instance.", e); } }
if(config.getSelectorNamespaceURI() == null || !config.getSelectorNamespaceURI().equals(selectorNS)) { return false;
if(config.getSelectorNamespaceURI() == null || !config.getSelectorNamespaceURI().equals(selectorNS)) { return false;
if(config.getSelectorNamespaceURI() == null || !config.getSelectorNamespaceURI().equals(selectorNS)) { return false;
if(config.getSelectorNamespaceURI() == null || !config.getSelectorNamespaceURI().equals(selectorNS)) { return false;
if(!isTargetedAtNamespace(element.getNamespaceURI())) { if (logger.isDebugEnabled()) { logger.debug("Not applying resource [" + this + "] to element [" + DomUtils.getXPath(element) + "]. Element not in namespace [" + getSelectorNamespaceURI() + "].");
if(!isTargetedAtNamespace(element.getNamespaceURI())) { if (logger.isDebugEnabled()) { logger.debug("Not applying resource [" + this + "] to element [" + DomUtils.getXPath(element) + "]. Element not in namespace [" + getSelectorNamespaceURI() + "].");
public static void mapProperty(SmooksResourceConfiguration fromConfig, String fromProperty, SmooksResourceConfiguration toConfig, String toProperty, String defaultValue, ExecutionContext executionContext) throws SmooksException { if(fromProperty.equals("selector")) { setProperty(toConfig, toProperty, fromConfig.getSelector(), executionContext); } else if(fromProperty.equals("resource")) { setProperty(toConfig, toProperty, fromConfig.getResource(), executionContext); } else if(fromProperty.equals("resourceType")) { setProperty(toConfig, toProperty, fromConfig.getResourceType(), executionContext); } else if(fromProperty.equals("selector-namespace")) { setProperty(toConfig, toProperty, fromConfig.getSelectorNamespaceURI(), executionContext); } else if(fromProperty.equals("defaultResource")) { setProperty(toConfig, toProperty, Boolean.toString(fromConfig.isDefaultResource()), executionContext); } else if(fromProperty.equals("targetProfile")) { setProperty(toConfig, toProperty, fromConfig.getTargetProfile(), executionContext); } else if(fromProperty.equals("condition")) { toConfig.setConditionEvaluator(fromConfig.getConditionEvaluator()); } else if(fromProperty.equals("conditionRef")) { toConfig.setConditionEvaluator(fromConfig.getConditionEvaluator()); } else { setProperty(toConfig, toProperty, fromConfig.getStringParameter(fromProperty, defaultValue), executionContext); } } }
public static void mapProperty(SmooksResourceConfiguration fromConfig, String fromProperty, SmooksResourceConfiguration toConfig, String toProperty, String defaultValue, ExecutionContext executionContext) throws SmooksException { if(fromProperty.equals("selector")) { setProperty(toConfig, toProperty, fromConfig.getSelector(), executionContext); } else if(fromProperty.equals("resource")) { setProperty(toConfig, toProperty, fromConfig.getResource(), executionContext); } else if(fromProperty.equals("resourceType")) { setProperty(toConfig, toProperty, fromConfig.getResourceType(), executionContext); } else if(fromProperty.equals("selector-namespace")) { setProperty(toConfig, toProperty, fromConfig.getSelectorNamespaceURI(), executionContext); } else if(fromProperty.equals("defaultResource")) { setProperty(toConfig, toProperty, Boolean.toString(fromConfig.isDefaultResource()), executionContext); } else if(fromProperty.equals("targetProfile")) { setProperty(toConfig, toProperty, fromConfig.getTargetProfile(), executionContext); } else if(fromProperty.equals("condition")) { toConfig.setConditionEvaluator(fromConfig.getConditionEvaluator()); } else if(fromProperty.equals("conditionRef")) { toConfig.setConditionEvaluator(fromConfig.getConditionEvaluator()); } else { setProperty(toConfig, toProperty, fromConfig.getStringParameter(fromProperty, defaultValue), executionContext); } } }
public static void mapProperty(SmooksResourceConfiguration fromConfig, String fromProperty, SmooksResourceConfiguration toConfig, String toProperty, String defaultValue, ExecutionContext executionContext) throws SmooksException { if(fromProperty.equals("selector")) { setProperty(toConfig, toProperty, fromConfig.getSelector(), executionContext); } else if(fromProperty.equals("resource")) { setProperty(toConfig, toProperty, fromConfig.getResource(), executionContext); } else if(fromProperty.equals("resourceType")) { setProperty(toConfig, toProperty, fromConfig.getResourceType(), executionContext); } else if(fromProperty.equals("selector-namespace")) { setProperty(toConfig, toProperty, fromConfig.getSelectorNamespaceURI(), executionContext); } else if(fromProperty.equals("defaultResource")) { setProperty(toConfig, toProperty, Boolean.toString(fromConfig.isDefaultResource()), executionContext); } else if(fromProperty.equals("targetProfile")) { setProperty(toConfig, toProperty, fromConfig.getTargetProfile(), executionContext); } else if(fromProperty.equals("condition")) { toConfig.setConditionEvaluator(fromConfig.getConditionEvaluator()); } else if(fromProperty.equals("conditionRef")) { toConfig.setConditionEvaluator(fromConfig.getConditionEvaluator()); } else { setProperty(toConfig, toProperty, fromConfig.getStringParameter(fromProperty, defaultValue), executionContext); } } }
public static void mapProperty(SmooksResourceConfiguration fromConfig, String fromProperty, SmooksResourceConfiguration toConfig, String toProperty, String defaultValue, ExecutionContext executionContext) throws SmooksException { if(fromProperty.equals("selector")) { setProperty(toConfig, toProperty, fromConfig.getSelector(), executionContext); } else if(fromProperty.equals("resource")) { setProperty(toConfig, toProperty, fromConfig.getResource(), executionContext); } else if(fromProperty.equals("resourceType")) { setProperty(toConfig, toProperty, fromConfig.getResourceType(), executionContext); } else if(fromProperty.equals("selector-namespace")) { setProperty(toConfig, toProperty, fromConfig.getSelectorNamespaceURI(), executionContext); } else if(fromProperty.equals("defaultResource")) { setProperty(toConfig, toProperty, Boolean.toString(fromConfig.isDefaultResource()), executionContext); } else if(fromProperty.equals("targetProfile")) { setProperty(toConfig, toProperty, fromConfig.getTargetProfile(), executionContext); } else if(fromProperty.equals("condition")) { toConfig.setConditionEvaluator(fromConfig.getConditionEvaluator()); } else if(fromProperty.equals("conditionRef")) { toConfig.setConditionEvaluator(fromConfig.getConditionEvaluator()); } else { setProperty(toConfig, toProperty, fromConfig.getStringParameter(fromProperty, defaultValue), executionContext); } } }
SmooksResourceConfiguration config = configList.get(i); if(config.getSelectorNamespaceURI() == null) { SelectorStep selectorStep = config.getSelectorStep();
SmooksResourceConfiguration config = configList.get(i); if(config.getSelectorNamespaceURI() == null) { SelectorStep selectorStep = config.getSelectorStep();
SmooksResourceConfiguration config = configList.get(i); if(config.getSelectorNamespaceURI() == null) { SelectorStep selectorStep = config.getSelectorStep();
if(resourceConfig.getSelectorNamespaceURI() != null) { specificity += 10;
if(resourceConfig.getSelectorNamespaceURI() != null) { specificity += 10;
if(resourceConfig.getSelectorNamespaceURI() != null) { specificity += 10;
if(resourceConfig.getSelectorNamespaceURI() != null) { specificity += 10;