Package org.exist.memtree

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


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

            builder.startElement( new QName( "flags", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
           
                        for (Flags.Flag systemFlag : systemFlags) {
                            if (systemFlag == Flags.Flag.ANSWERED) {
                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "answered" );
                                builder.endElement();
                            } else if (systemFlag == Flags.Flag.DELETED) {
                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "deleted" );
                                builder.endElement();
View Full Code Here

                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "answered" );
                                builder.endElement();
                            } else if (systemFlag == Flags.Flag.DELETED) {
                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "deleted" );
                                builder.endElement();
                            } else if (systemFlag == Flags.Flag.DRAFT) {
                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "draft" );
                                builder.endElement();
View Full Code Here

                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "deleted" );
                                builder.endElement();
                            } else if (systemFlag == Flags.Flag.DRAFT) {
                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "draft" );
                                builder.endElement();
                            } else if (systemFlag == Flags.Flag.FLAGGED) {
                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "flagged" );
                                builder.endElement();
View Full Code Here

                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "draft" );
                                builder.endElement();
                            } else if (systemFlag == Flags.Flag.FLAGGED) {
                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "flagged" );
                                builder.endElement();
                            } else if (systemFlag == Flags.Flag.RECENT) {
                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "recent" );
                                builder.endElement();
View Full Code Here

                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "flagged" );
                                builder.endElement();
                            } else if (systemFlag == Flags.Flag.RECENT) {
                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "recent" );
                                builder.endElement();
                            } else if (systemFlag == Flags.Flag.SEEN) {
                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "seen" );
                                builder.endElement();
View Full Code Here

                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "recent" );
                                builder.endElement();
                            } else if (systemFlag == Flags.Flag.SEEN) {
                                builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                                builder.addAttribute( new QName( "type", null, null ), "seen" );
                                builder.endElement();
                            }
                        }
           
                        for (String userFlag : userFlags) {
View Full Code Here

                            }
                        }
           
                        for (String userFlag : userFlags) {
                            builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                            builder.addAttribute( new QName( "type", null, null ), "user" );
                            builder.addAttribute(new QName( "value", null, null ), userFlag);
                            builder.endElement();
                        }

            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.