Package org.exist.memtree

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


      boolean includeHeaders = args[1].effectiveBooleanValue();
     
      MemTreeBuilder builder = context.getDocumentBuilder();
       
          builder.startDocument();
          builder.startElement( new QName( "messages", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
          builder.addAttribute( new QName( "count", null, null ), String.valueOf( msgList.length ) );
     
      try {
        for( int i = 0; i < msgList.length; i++ ) {
          Message message = msgList[ i ];
View Full Code Here


     
      try {
        for( int i = 0; i < msgList.length; i++ ) {
          Message message = msgList[ i ];
         
          builder.startElement( new QName( "message", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );

          builder.addAttribute( new QName( "number", null, null ), String.valueOf(message.getMessageNumber()) );
         
          // Sent Date
          if( message.getSentDate() != null ) {
View Full Code Here

          builder.addAttribute( new QName( "number", null, null ), String.valueOf(message.getMessageNumber()) );
         
          // 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
View Full Code Here

            builder.endElement();
              }
         
          // 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
View Full Code Here

            builder.endElement();
              }
         
          // 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
View Full Code Here

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

          builder.startElement( new QName( "recipients", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
            // To Recipients
            Address[] toAddresses = message.getRecipients( Message.RecipientType.TO );
            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();
                        }
            }
View Full Code Here

        File home = context.getBroker().getConfiguration().getExistHome();
        targetDir = new File(home, target);
      }
     
      output.startDocument();
      output.startElement(new QName("sync", FileModule.NAMESPACE_URI), null);
      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);
     
View Full Code Here

           
            // cc Recipients
            Address[] ccAddresses = message.getRecipients( Message.RecipientType.CC );
            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();
                        }
            }
View Full Code Here

           
            // bcc Recipients
            Address[] bccAddresses = message.getRecipients( Message.RecipientType.BCC );
            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();
                        }
            }
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.