public void visitAfter(Element element, ExecutionContext executionContext) throws SmooksException { if(!beanExists(executionContext)) { logger.debug("Cannot bind data onto bean '" + beanId + "' as bean does not exist in BeanContext."); return; } if(!isBeanWiring && !isAttribute) { bindDomDataValue(element, executionContext); } }
public void visitAfter(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { if(!beanExists(executionContext)) { logger.debug("Cannot bind data onto bean '" + beanId + "' as bean does not exist in BeanContext."); return; } if(!isBeanWiring && !isAttribute) { bindSaxDataValue(element, executionContext); } }
public void visitBefore(Element element, ExecutionContext executionContext) throws SmooksException { if(!beanExists(executionContext)) { logger.debug("Cannot bind data onto bean '" + beanId + "' as bean does not exist in BeanContext."); return; } if(isBeanWiring) { bindBeanValue(executionContext, new Fragment(element)); } else if(isAttribute) { // Bind attribute (i.e. selectors with '@' prefix) values on the visitBefore... bindDomDataValue(element, executionContext); } }
public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { if(!beanExists(executionContext)) { logger.debug("Cannot bind data onto bean '" + beanId + "' as bean does not exist in BeanContext."); return; } if(isBeanWiring) { bindBeanValue(executionContext, new Fragment(element)); } else if(isAttribute) { // Bind attribute (i.e. selectors with '@' prefix) values on the visitBefore... bindSaxDataValue(element, executionContext); } else if(expressionEvaluator == null || expressionHasDataVariable) { // It's not a wiring, attribute or expression binding => it's the element's text. // Turn on Text Accumulation... element.accumulateText(); } }