Package org.milyn.delivery

Examples of org.milyn.delivery.Fragment


    }

  public void visitBefore(Element element, ExecutionContext executionContext)
      throws SmooksException {
    if(isAttribute) {
      bindValue(DomUtils.getAttributeValue(element, valueAttributeName), executionContext, new Fragment(element));
    }
  }
View Full Code Here


  }

  public void visitAfter(Element element, ExecutionContext executionContext)
      throws SmooksException {
    if(!isAttribute) {
      bindValue(DomUtils.getAllText(element, false), executionContext, new Fragment(element));
    }
  }
View Full Code Here

  public void visitBefore(SAXElement element,
      ExecutionContext executionContext) throws SmooksException,
      IOException {
    if(isAttribute) {
      bindValue(SAXUtil.getAttribute(valueAttributeName, element.getAttributes()), executionContext, new Fragment(element));
    } else {
            // Turn on Text Accumulation...
            element.accumulateText();
    }
  }
View Full Code Here

  }

  public void visitAfter(SAXElement element, ExecutionContext executionContext)
      throws SmooksException, IOException {
    if(!isAttribute) {
      bindValue(element.getTextContent(), executionContext, new Fragment(element));
    }
  }
View Full Code Here

        public void onBeanLifecycleEvent(BeanContextLifecycleEvent event) {
      if(event.getLifecycle() == BeanLifecycle.ADD || event.getLifecycle() == BeanLifecycle.CHANGE) {
                Object bean = event.getBean();
                BeanMetadata beanMetadata = new BeanMetadata(bean);
                Map<String, BeanWriter> beanWriters = beanWriterMap.get(bean.getClass());
                Fragment source = event.getSource();

                if(source != null) {
                    String namespaceURI = source.getNamespaceURI();

                    beanMetadata.setNamespace(namespaceURI);
                    beanMetadata.setNamespacePrefix(source.getPrefix());
                    beanMetadata.setCreateSource(source);
                    beans.add(beanMetadata);

                    if(source.isDOMElement()) {
                        beanMetadata.setPreText(UnknownElementDataReaper.getPreText(source.getDOMElement(), beans, event));
                    } else {
                        // SAX pretext is gathered by an instance of the UnknownElementDataReaper
                    }

                    if(beanWriters != null) {
View Full Code Here

  public boolean consumes(Object object) {
    return object.equals(beanIdName);
  }

    public void visitBefore(final Element element, final ExecutionContext executionContext) throws SmooksException {
      insert(executionContext, new Fragment(element));
    }
View Full Code Here

    public void visitBefore(final Element element, final ExecutionContext executionContext) throws SmooksException {
      insert(executionContext, new Fragment(element));
    }

    public void visitAfter(final Element element, final ExecutionContext executionContext) throws SmooksException {
      insert(executionContext, new Fragment(element));
    }
View Full Code Here

    public void visitAfter(final Element element, final ExecutionContext executionContext) throws SmooksException {
      insert(executionContext, new Fragment(element));
    }

    public void visitBefore(final SAXElement element, final ExecutionContext executionContext) throws SmooksException, IOException {
      insert(executionContext, new Fragment(element));
    }
View Full Code Here

    public void visitBefore(final SAXElement element, final ExecutionContext executionContext) throws SmooksException, IOException {
      insert(executionContext, new Fragment(element));
    }

    public void visitAfter(final SAXElement element, final ExecutionContext executionContext) throws SmooksException, IOException {
      insert(executionContext, new Fragment(element));
    }
View Full Code Here

  public boolean consumes(Object object) {
    return object.equals(beanIdName);
  }

    public void visitBefore(final Element element, final ExecutionContext executionContext) throws SmooksException {
      update(executionContext, new Fragment(element));
    }
View Full Code Here

TOP

Related Classes of org.milyn.delivery.Fragment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.