Examples of toNextSelection()


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

          while (c.toNextSelection()) {
             XmlObject o = c.getObject();
             if (o instanceof CTObject) {
                XmlCursor c2 = o.newCursor();
                c2.selectPath("./*");
                while (c2.toNextSelection()) {
                   XmlObject o2 = c2.getObject();

                   XmlObject embedAtt = o2.selectAttribute(new QName("Type"));
                   if (embedAtt != null && embedAtt.getDomNode().getNodeValue().equals("Embed")) {
                      // Type is "Embed"
View Full Code Here

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

                selections = new XmlObject[ 0 ];
            else
            {
                selections = new XmlObject [ c.getSelectionCount() ];

                for (int i = 0 ; c.toNextSelection() ; i++)
                {
                    if ((selections[ i ] = c.getObject()) == null)
                    {
                        throw
                            new XmlRuntimeException(
View Full Code Here

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

    XmlCursor cursor = xmlObject.newCursor();
    try
    {
      cursor.selectPath( xpath );

      if( cursor.toNextSelection() )
      {
        return cursor.getDomNode();
      }
      else
        return null;
View Full Code Here

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

    XmlCursor cursor = xmlObject.newCursor();
    try
    {
      cursor.selectPath( xpath );

      while( cursor.toNextSelection() )
      {
        result.add( cursor.getDomNode() );
      }
    }
    finally
View Full Code Here

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

    XmlCursor cursor = xmlObject.newCursor();
    try
    {
      cursor.selectPath( xpath );

      if( cursor.toNextSelection() )
      {
        XmlUtils.setNodeValue( cursor.getDomNode(), value == null ? null : value.toString() );
      }
    }
    finally
View Full Code Here

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

      if( contentArea != null && contentArea.isVisible() )
        contentArea.setText( "" );

      cursor = xml.newCursor();
      cursor.selectPath( expandedPath );
      if( !cursor.toNextSelection() )
      {
        UISupport.showErrorMessage( "No match in current response" );
      }
      else if( cursor.hasNextSelection() )
      {
View Full Code Here

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

      List<String> result = new ArrayList<String>();

      String tp = PropertyExpander.expandProperties( context, getTargetPath() );
      targetCursor.selectPath( tp );

      if( !targetCursor.toNextSelection() )
        throw new Exception( "Missing match for Target XPath [" + tp + "]" );

      String value = sourceProperty.getValue();

      Node targetNode = targetCursor.getDomNode();
View Full Code Here

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

      result.add( value );

      if( getTransferToAll() )
      {
        while( targetCursor.toNextSelection() )
        {
          targetNode = targetCursor.getDomNode();
          setNodeValue( value, targetNode );

          result.add( value );
View Full Code Here

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

          XmlCursor cursor = cursorCache.get( path );
          if( cursor == null && !cursorCache.containsKey( path ) )
          {
            cursor = xmlObject.newCursor();
            cursor.selectPath( path );
            if( !cursor.toNextSelection() )
            {
              cursor.dispose();
              cursor = null;
            }
          }
View Full Code Here

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

      {
        // XmlObject xmlObject = XmlObject.Factory.parse( content );
        XmlObject xmlObject = XmlUtils.createXmlObject( content );
        cursor = xmlObject.newCursor();
        cursor.selectPath( selectedQuery.getQuery() );
        if( !cursor.toNextSelection() )
        {
          UISupport.showErrorMessage( "Missing match in request" );
        }
        else
        {
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.