Package org.salamandra.web.core.transformer.node.binder

Examples of org.salamandra.web.core.transformer.node.binder.XmlBindingFactory.create()


      Result result = new StreamResult(out);

      XmlBindingFactory xbf = new XmlBindingFactory(lst);
      xbf.setSAXTransformer(this);
     
      AbstractXmlBinding<?> axb = xbf.create(beanParseRequest.getProtocol(), bean);
      axb.transform(result);
    } catch (Exception e) {
      throw new TransformerException(e);
    };
  }
View Full Code Here


            sessionElement.appendChild(language);
            sessionElement.appendChild(country);
          } else {
            XmlBindingFactory xf = getBindingFactory();
            if (xf != null) {
              AbstractXmlBinding xs = xf.create(Protocol.XSLT, thisValueObject );
              xs.marshal(sessionElement);     

            }
          }
      } else {
View Full Code Here

      Element root = document.createElement(nodeKey);

      XBean xbean = getXObject(nodeKey, request);
      if (xbean!=null) {
        XmlBindingFactory xf = (XmlBindingFactory) getBindingFactory();
        AbstractXmlBinding binding = xf.create(Protocol.XSLT, xbean);
        binding.marshal( root );
      }
      return root;
    } catch (Exception e) {
      throw new NodeProcessorException(e);
View Full Code Here

      }
     
      XmlBindingFactory xbf = new XmlBindingFactory(lst);
      xbf.setSAXTransformer(saxTransformer);
      
      AbstractXmlBinding axb = xbf.create(protocol ,bean);

      axb.transform(new SAXResult(sax));
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.