1 16 package org.apache.cocoon.woody.binding; 17 18 import org.apache.cocoon.woody.util.DomHelper; 19 import org.w3c.dom.Element ; 20 21 36 public class NewJXPathBindingBuilder 37 extends JXPathBindingBuilderBase { 38 39 public JXPathBindingBase buildBinding(Element bindingElm, JXPathBindingManager.Assistant assistant) 40 throws BindingException { 41 try { 42 String widgetId = DomHelper.getAttribute(bindingElm, "id"); 43 CommonAttributes commonAtts = JXPathBindingBuilderBase.getCommonAttributes(bindingElm); 44 45 JXPathBindingBase[] childBindings = assistant.makeChildBindings(bindingElm); 46 47 NewJXPathBinding newBinding = new NewJXPathBinding(commonAtts, widgetId, childBindings); 48 return newBinding; 49 } catch (BindingException e) { 50 throw e; 51 } catch (Exception e) { 52 throw new BindingException("Error building new binding defined at " + DomHelper.getLocation(bindingElm), e); 53 } 54 } 55 } 56 | Popular Tags |