Examples of toXML()


Examples of org.apache.ojb.broker.metadata.CollectionDescriptor.toXML()

                    catch (LockNotGrantedException e)
                    {
                        String eol = SystemUtils.LINE_SEPARATOR;
                        log.error("Lock not granted, while lock collection references[" +
                                eol + "current reference descriptor:" +
                                eol + cds.toXML() +
                                eol + "object to lock: " + item +
                                eol + "main object class: " + sourceObject.getClass().getName() +
                                eol + "]", e);
                        throw e;
                    }
View Full Code Here

Examples of org.apache.oodt.profile.Profile.toXML()

        Profile profile = (Profile) j.next();                 // Get the profile
        if (transformer == null) {                   // No transformer/doc yet?
          transformer = createTransformer();             // Then make the transformer
          doc = Profile.createProfileDocument();         // And the doc
        }                         // And use the doc ...
        Node profileNode = profile.toXML(doc);                 // To render the profile into XML
        DOMSource source = new DOMSource(profileNode);         // And the XML becomes is source
        StreamResult result = new StreamResult(res.getWriter()); // And the response is a result
        transformer.transform(source, result);                 // And serialize into glorious text
        sentAtLeastOne = true;               // OK, we got at least one out the doo
      }
View Full Code Here

Examples of org.apache.openmeetings.db.entity.server.RemoteSessionObject.toXml()

            username, firstname, lastname, profilePictureUrl,
            email, externalUserId, externalUserType);

        log.debug(remoteSessionObject.toString());

        String xmlString = remoteSessionObject.toXml();

        log.debug("xmlString " + xmlString);

        sessiondataDao.updateUserRemoteSession(SID, xmlString);
View Full Code Here

Examples of org.apache.poi.ddf.EscherArrayProperty.toXml()

        EscherArrayProperty verticesProp1 = polygon.getOptRecord().lookup(EscherProperties.GEOMETRY__VERTICES);
        EscherArrayProperty verticesProp2 = ((EscherOptRecord)polygonShape.getSpContainer().getChildById(EscherOptRecord.RECORD_ID))
                .lookup(EscherProperties.GEOMETRY__VERTICES);

        assertEquals(verticesProp1.getNumberOfElementsInArray(), verticesProp2.getNumberOfElementsInArray());
        assertEquals(verticesProp1.toXml(""), verticesProp2.toXml(""));
       
        polygon.setPoints(new int[]{1,2,3}, new int[] {4,5,6});
        assertArrayEquals(polygon.getXPoints(), new int[]{1, 2, 3});
        assertArrayEquals(polygon.getYPoints(), new int[]{4, 5, 6});
View Full Code Here

Examples of org.apache.poi.ddf.EscherOptRecord.toXml()

            HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
   
            HSSFTextbox textbox = patriarch.createTextbox(new HSSFClientAnchor());
            EscherOptRecord opt = HSSFTestHelper.getOptRecord(textbox);
           
            String opt1Str = opt.toXml();
   
            textbox.setFillColor(textbox.getFillColor());
            EscherContainerRecord container = HSSFTestHelper.getEscherContainer(textbox);
            EscherOptRecord optRecord = container.getChildById(EscherOptRecord.RECORD_ID);
            assertEquals(opt1Str, optRecord.toXml());
View Full Code Here

Examples of org.apache.poi.hssf.record.EscherAggregate.toXml()

        sp2.setShapeId(1024);
        dg.setLastMSOSPID(1024);
        dg.setInstance((short) 0x1);

        assertEquals(agg1.serialize().length, agg2.serialize().length);
        assertEquals(agg1.toXml(""), agg2.toXml(""));
        assertArrayEquals(agg1.serialize(), agg2.serialize());
    }
   
    public void testCloneComment() throws IOException {
        HSSFWorkbook wb = new HSSFWorkbook();
View Full Code Here

Examples of org.apache.stratos.cloud.controller.util.ServiceContext.toXml()

    try {
      String uniqueName = domain + "-" + subDomain + "-"
          + UUID.randomUUID() + ".xml";
      FileUtils.writeStringToFile(new File(
          CloudControllerConstants.SERVICES_DIR + uniqueName),
          newServiceCtxt.toXml());
    } catch (IOException e) {
      String msg = "Failed while persisting the service configuration - domain : "
          + domain
          + ", sub domain : "
          + subDomain
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.web.WebXml.toXml()

        // Step 9a. Make the merged web.xml available to other
        // components, specifically Jasper, to save those components
        // from having to re-generate it.
        // TODO Use a ServletContainerInitializer for Jasper
        String mergedWebXml = webXml.toXml();
        sContext.setAttribute(
               org.apache.tomcat.util.scan.Constants.MERGED_WEB_XML,
               mergedWebXml);
        if (context.getLogEffectiveWebXml()) {
            log.info("web.xml:\n" + mergedWebXml);
View Full Code Here

Examples of org.apache.uima.analysis_engine.AnalysisEngineDescription.toXML()

    // indent should not be used because we're using a parser mode which preserves
    // comments and ignorable white space.
    xmlSerializer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
    ContentHandler contentHandler = xmlSerializer.getContentHandler();
    contentHandler.startDocument();
    desc.toXML(contentHandler, true);
    contentHandler.endDocument();
    os.close();
   
    long diff = cloneFile.length() - inFile.length();
    // One platform inserts a blank line and a final newline, so don't insist on perfection
View Full Code Here

Examples of org.apache.uima.collection.CasConsumerDescription.toXML()

        return writer.toString();
      } else if (specifier instanceof CasConsumerDescription) {
        CasConsumerDescription ccSpecifier = (CasConsumerDescription) specifier;
        ccSpecifier.getCasConsumerMetaData().resolveImports(resMgr);
        StringWriter writer = new StringWriter();
        ccSpecifier.toXML(writer);
        return writer.toString();
      }
    } catch (UnsupportedEncodingException e) {
      logException(e);
    } catch (InvalidXMLException e) {
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.