Package org.apache.xmlbeans

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


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


     * 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

        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

    {
        XmlCursor c = o.newCursor();
       
        try
        {
            while ( c.toParent() )
            {
                o = c.getObject();
               
                if (o.schemaType().equals(Schema.type))
                    return (Schema) o;
View Full Code Here

                        if (!addToThis.containsKey( prefix ))
                            addToThis.put( prefix, uri );
                    }
                }
   
                c.toParent();
            }
            while ( c.toParent() );
   
            c.dispose();
        }
View Full Code Here

                    }
                }
   
                c.toParent();
            }
            while ( c.toParent() );
   
            c.dispose();
        }
    }
   
View Full Code Here

    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

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

    static SchemaLocalAttributeImpl translateAttribute(
View Full Code Here

    {
        XmlCursor c = o.newCursor();
       
        try
        {
            while ( c.toParent() )
            {
                o = c.getObject();
               
                if (o.schemaType().equals(Schema.type))
                    return (Schema) o;
View Full Code Here

                    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

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.