Examples of toParent()


Examples of org.apache.xmlbeans.XmlCursor.toParent()

                    cursor.pop();
                    cursor.push();
                    if (cursor.toChild(this.namespace, "security-realm-name")) {
                        XmlCursor other = cursor.newCursor();
                        try {
                            other.toParent();
                            if (other.toChild(SYSTEM_NAMESPACE, "gbean")) {
                                other.toPrevToken();
                            } else {
                                other.toEndToken();
                                other.toPrevToken();
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toParent()

   * verifies that cursor is on the right position
   * @param cursor
   */
  private boolean isCursorInBody(XmlCursor cursor) {
    XmlCursor verify = cursor.newCursor();
    verify.toParent();
    if(verify.getObject() == this.ctDocument.getBody()){
      return true;
    }
    XmlObject o = verify.getObject();
    return false;
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toParent()

   * get the TableCell which belongs to the TableCell
   * @param cell
   */
  public XWPFTableCell getTableCell(CTTc cell) {
    XmlCursor cursor = cell.newCursor();
    cursor.toParent();
    XmlObject o = cursor.getObject();
    if(!(o instanceof CTRow)){
      return null;
    }
    CTRow row = (CTRow)o;
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toParent()

    XmlObject o = cursor.getObject();
    if(!(o instanceof CTRow)){
      return null;
    }
    CTRow row = (CTRow)o;
    cursor.toParent();
    o = cursor.getObject();
        cursor.dispose();
    if(! (o instanceof CTTbl)){
      return null;
    }
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toParent()

                    cursor.pop();
                    cursor.push();
                    if (cursor.toChild(this.namespace, "security-realm-name")) {
                        XmlCursor other = cursor.newCursor();
                        try {
                            other.toParent();
                            if (other.toChild(SYSTEM_NAMESPACE, "gbean")) {
                                other.toPrevToken();
                            } else {
                                other.toEndToken();
                                other.toPrevToken();
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toParent()

    {
        XmlCursor c = o.newCursor();

        try
        {
            while ( c.toParent() )
            {
                o = c.getObject();

                if (o.schemaType().equals(Schema.type))
                    return (Schema) o;
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toParent()

        c.push(); System.out.println(generateXPath(c, null, ns)); c.pop();
        c.toNextSibling();
        c.toNextSibling();       // on the last <c>
        c.push(); System.out.println(generateXPath(c, null, ns)); c.pop();
        XmlCursor d = c.newCursor();
        d.toParent();
        c.push(); System.out.println(generateXPath(c, d, ns)); c.pop();
        d.toParent();
        c.push(); System.out.println(generateXPath(c, d, ns)); c.pop();
        c.toFirstContentToken(); // on text content of the last <c>
        c.push(); System.out.println(generateXPath(c, d, ns)); c.pop();
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toParent()

        c.toNextSibling();       // on the last <c>
        c.push(); System.out.println(generateXPath(c, null, ns)); c.pop();
        XmlCursor d = c.newCursor();
        d.toParent();
        c.push(); System.out.println(generateXPath(c, d, ns)); c.pop();
        d.toParent();
        c.push(); System.out.println(generateXPath(c, d, ns)); c.pop();
        c.toFirstContentToken(); // on text content of the last <c>
        c.push(); System.out.println(generateXPath(c, d, ns)); c.pop();
        c.toParent();
        c.toPrevToken();         // on text content before the last <c>
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toParent()

    {
        XmlCursor cur = newCursor();
        if (cur == null)
            return false;

        boolean result = !cur.toParent();
        cur.dispose();
        return result;
    }

    /**
 
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toParent()

                for (int i = 0 ; c.toNextSelection() ; i++)
                {
                    if ((selections[ i ] = c.getObject()) == null)
                    {
                        if ( !c.toParent() || (selections[ i ] = c.getObject()) == null )
                        throw
                            new XmlRuntimeException(
                                "Path must select only elements " +
                                    "and attributes" );
                    }
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.