Examples of newCursor()


Examples of org.ogf.schemas.jsdl.ApplicationType.newCursor()

            // TODO handle: not creating POSIX element if HPCProfile already exists
            return getPOSIXApplication(value);
        }

        if (getPOSIXApplication(value) == null) {
            XmlCursor acursor = application.newCursor();
            acursor.toEndToken();
            acursor.insertElement(POSIX_APPLICATION);
            acursor.dispose();
        }
        return getPOSIXApplication(value);
View Full Code Here

Examples of org.openxmlformats.schemas.drawingml.x2006.main.CTGraphicalObjectData.newCursor()

        nvGr.addNewCNvGraphicFramePr().addNewGraphicFrameLocks().setNoGrp(true);
        nvGr.addNewNvPr();
       
        frame.addNewXfrm();
        CTGraphicalObjectData gr = frame.addNewGraphic().addNewGraphicData();
        XmlCursor cursor = gr.newCursor();
        cursor.toNextToken();
        cursor.beginElement(new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "tbl"));
        cursor.beginElement(new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "tblPr"));
        cursor.toNextToken();
        cursor.beginElement(new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "tblGrid"));
View Full Code Here

Examples of org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst.newCursor()

            // read back as XSSF and check that xml:spaces="preserve" is set
            XSSFWorkbook xwb = (XSSFWorkbook)SXSSFITestDataProvider.instance.writeOutAndReadBack(swb);
            XSSFCell xCell = xwb.getSheetAt(0).getRow(0).getCell(0);

            CTRst is = xCell.getCTCell().getIs();
            XmlCursor c = is.newCursor();
            c.toNextToken();
            String t = c.getAttributeText(new QName("http://www.w3.org/XML/1998/namespace", "space"));
            c.dispose();
            assertEquals("expected xml:spaces=\"preserve\" \"" + str + "\"", "preserve", t);
        }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP.newCursor()

        else{
          int pos = paragraphs.indexOf(getParagraph((CTP)o))+1;
          paragraphs.add(pos,newP);
        }
        int i=0;
        cursor.toCursor(p.newCursor());
      while(cursor.toPrevSibling()){
        o =cursor.getObject();
        if(o instanceof CTP || o instanceof CTTbl)
          i++;
      }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP.newCursor()

        o =cursor.getObject();
        if(o instanceof CTP || o instanceof CTTbl)
          i++;
      }
      bodyElements.add(i, newP);
        cursor.toCursor(p.newCursor());
        cursor.toEndToken();
        return newP;
      }
      return null;
    }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR.newCursor()

         
          // Check for bits that only apply when
          //  attached to a core document
          // TODO Make this nicer by tracking the XWPFFootnotes directly
          if(document != null) {
             c = r.newCursor();
             c.selectPath("child::*");
             while (c.toNextSelection()) {
                XmlObject o = c.getObject();
                if(o instanceof CTFtnEdnRef) {
                   CTFtnEdnRef ftn = (CTFtnEdnRef)o;
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR.newCursor()

      int beginRunPos = 0, candCharPos = 0;
      boolean newList = false;
      for (int runPos=startRun; runPos<paragraph.getRList().size(); runPos++) {
        int beginTextPos = 0,beginCharPos = 0, textPos = 0,  charPos = 0
        CTR ctRun = paragraph.getRArray(runPos);
        XmlCursor c = ctRun.newCursor();
        c.selectPath("./*");
        while(c.toNextSelection()){
          XmlObject o = c.getObject();
          if(o instanceof CTText){
            if(textPos>=startText){
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl.newCursor()

      else{
        int pos = tables.indexOf(getTable((CTTbl)o))+1;
        tables.add(pos,newT);
      }
      int i=0;
      cursor = t.newCursor();
      while(cursor.toPrevSibling()){
        o =cursor.getObject();
        if(o instanceof CTP || o instanceof CTTbl)
          i++;
      }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl.newCursor()

        o =cursor.getObject();
        if(o instanceof CTP || o instanceof CTTbl)
          i++;
      }
      bodyElements.add(i, newT);
      cursor = t.newCursor();
      cursor.toEndToken();
      return newT;
    }
    return null;
  }
View Full Code Here

Examples of org.servicemix.ws.xmlbeans.addressing.v2003_03.ReferencePropertiesType.newCursor()

   
    private EndpointReferenceType toEndpointReference(String ref) {
        EndpointReferenceType rc = EndpointReferenceType.Factory.newInstance();
        rc.addNewAddress().setStringValue(address);
        ReferencePropertiesType props = rc.addNewReferenceProperties();
        XmlCursor cursor = props.newCursor();
        cursor.setTextValue(ref);
        return rc;
    }

    private String toReferenceId(EndpointReferenceType subscriptionReference) {
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.