Examples of toParent()


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

                cursor.pop();
                cursor.push();
                if (cursor.toChild(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
     */
    private boolean isCursorInTableCell(XmlCursor cursor) {
  XmlCursor verify = cursor.newCursor();
  verify.toParent();
  if(verify.getObject() == this.ctTc){
      return true;
  }
  return false;
    }
View Full Code Here

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

    /**
     * get the TableCell which belongs to the TableCell
     */
    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()

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

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

     * @param cell
     */
    @Override
    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()

    {
        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()

    {
        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()

    static FormChoice findElementFormDefault(XmlObject obj)
    {
        XmlCursor cur = obj.newCursor();
        while (cur.getObject().schemaType() != Schema.type)
            if (!cur.toParent())
                return null;
        return ((Schema)cur.getObject()).xgetElementFormDefault();
    }

    public static boolean uriMatch(String s1, String s2)
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.