Package org.apache.tuscany.sdo.helper

Examples of org.apache.tuscany.sdo.helper.XMLHelperImpl


        try {
            //REVISIT - this is SUCH a hack.   SDO needs to be able to
            //go directly to some formats other than streams.  They are working
            //on stax, but not there yet.
            RawByteArrayOutputStream bout = new RawByteArrayOutputStream();
            new XMLHelperImpl(callback.getTypeHelper()).save(obj,
                    wrapperName.getNamespaceURI(),
                    wrapperName.getLocalPart(),
                    bout);

            ByteArrayInputStream bin = new ByteArrayInputStream(bout.getBytes(),
View Full Code Here


            }

            //REVISIT - This is SUCH a HACK.  This needs to be done with StAX or something
            //a bit better than streaming and reparsing
            InputStream in = getNodeStream(nd);
            XMLDocument document = new XMLHelperImpl(callback.getTypeHelper()).load(in);
            DataObject object = document.getRootObject();

            List ips = object.getInstanceProperties();
            Object[] os = new Object[object.getInstanceProperties().size()];
            for (int i = 0; i < os.length; i++) {
View Full Code Here

   * @param scope the TypeHelper to use for locating types.
   * @return the new XMLHelper.
   */
  public static XMLHelper createXMLHelper(TypeHelper scope)
  {
    return new XMLHelperImpl(scope);
  }
View Full Code Here

   * @param scope the TypeHelper to use for locating types.
   * @return the new XMLHelper.
   */
  public static XMLHelper createXMLHelper(TypeHelper scope)
  {
    return new XMLHelperImpl(scope);
  }
View Full Code Here

   * @return the new XMLHelper.
   * @deprecated see {@link #createHelperContext(TypeHelper)}
   */
  public static XMLHelper createXMLHelper(TypeHelper scope)
  {
    return new XMLHelperImpl(scope);
  }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sdo.helper.XMLHelperImpl

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.