Package org.exist.memtree

Examples of org.exist.memtree.MemTreeBuilder.endElement()


          int column = getColumn();
         
          builder.startElement(new QName("xquery", OracleModule.NAMESPACE_URI, OracleModule.PREFIX), null);
          builder.addAttribute(new QName("line", null, null), String.valueOf(line));
          builder.addAttribute(new QName("column", null, null), String.valueOf(column));
          builder.endElement();

        builder.endElement();
        builder.endDocument();
       
        return (NodeValue)builder.getDocument().getDocumentElement();   
View Full Code Here


          builder.startElement(new QName("xquery", OracleModule.NAMESPACE_URI, OracleModule.PREFIX), null);
          builder.addAttribute(new QName("line", null, null), String.valueOf(line));
          builder.addAttribute(new QName("column", null, null), String.valueOf(column));
          builder.endElement();

        builder.endElement();
        builder.endDocument();
       
        return (NodeValue)builder.getDocument().getDocumentElement();   
      }
      finally {
View Full Code Here

         
          // Sent Date
          if( message.getSentDate() != null ) {
            builder.startElement( new QName( "sent", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
            builder.characters( formatDate( message.getSentDate() ) );
            builder.endElement();
              }
         
          // Received Date
          if( message.getReceivedDate() != null ) {
            builder.startElement( new QName( "received", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
View Full Code Here

         
          // Received Date
          if( message.getReceivedDate() != null ) {
            builder.startElement( new QName( "received", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
            builder.characters( formatDate( message.getReceivedDate() ) );
            builder.endElement();
              }
         
          // From
          if( message.getFrom() != null ) {
            builder.startElement( new QName( "from", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
View Full Code Here

         
          // From
          if( message.getFrom() != null ) {
            builder.startElement( new QName( "from", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
            builder.characters( message.getFrom()[0].toString() );
            builder.endElement();
          }
         
          // Recipients
          builder.startElement( new QName( "recipients", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
            // To Recipients
View Full Code Here

            if( toAddresses != null ) {
                        for (Address to : toAddresses) {
                            builder.startElement( new QName( "recipient", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                            builder.addAttribute( new QName( "type", null, null ), "to" );
                            builder.characters(to.toString());
                            builder.endElement();
                        }
            }
           
            // cc Recipients
            Address[] ccAddresses = message.getRecipients( Message.RecipientType.CC );
View Full Code Here

      output.addAttribute(new QName("collection", FileModule.NAMESPACE_URI), collectionPath);
      output.addAttribute(new QName("dir", FileModule.NAMESPACE_URI), targetDir.getAbsolutePath());
     
      saveCollection(XmldbURI.create(collectionPath), targetDir, startDate, output);
     
      output.endElement();
      output.endDocument();
        } catch(PermissionDeniedException pde) {
            throw new XPathException(this, pde);
    } finally {
      context.popDocumentContext();
View Full Code Here

            if( ccAddresses != null ) {
                        for (Address ccAddress : ccAddresses) {
                            builder.startElement( new QName( "recipient", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                            builder.addAttribute( new QName( "type", null, null ), "cc" );
                            builder.characters(ccAddress.toString());
                            builder.endElement();
                        }
            }
           
            // bcc Recipients
            Address[] bccAddresses = message.getRecipients( Message.RecipientType.BCC );
View Full Code Here

            if( bccAddresses != null ) {
                        for (Address bccAddress : bccAddresses) {
                            builder.startElement( new QName( "recipient", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                            builder.addAttribute( new QName( "type", null, null ), "bcc" );
                            builder.characters(bccAddress.toString());
                            builder.endElement();
                        }
            }
          builder.endElement();
         
          // Flags
View Full Code Here

                            builder.addAttribute( new QName( "type", null, null ), "bcc" );
                            builder.characters(bccAddress.toString());
                            builder.endElement();
                        }
            }
          builder.endElement();
         
          // Flags
         
          Flags       flags   = message.getFlags();
          Flags.Flag[]   systemFlags    = flags.getSystemFlags();
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.