Package org.exist.memtree

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


                        String  value = param.getFirstChild().getNodeValue();
                        String  type  = param.getAttributeNS( SQLModule.NAMESPACE_URI, TYPE_ATTRIBUTE_NAME );

                        builder.startElement( new QName( PARAM_ELEMENT_NAME, SQLModule.NAMESPACE_URI, SQLModule.PREFIX ), null );

                        builder.addAttribute( new QName( TYPE_ATTRIBUTE_NAME, SQLModule.NAMESPACE_URI, SQLModule.PREFIX ), type );
                        builder.characters( SQLUtils.escapeXmlText( value ) );

                        builder.endElement();
                    }
View Full Code Here


                    builder.endElement();
                }
            }

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

            builder.endElement();
            builder.endDocument();
View Full Code Here

                }
            }

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

            builder.endElement();
            builder.endDocument();
View Full Code Here

        boolean recoverable = false;
        if(sqle instanceof SQLRecoverableException)
        {
          recoverable = true;
        }
        builder.addAttribute(new QName("recoverable", null, null), String.valueOf(recoverable));
             
        builder.startElement(new QName("state", OracleModule.NAMESPACE_URI, OracleModule.PREFIX), null);
        String sqlState = sqle.getSQLState();
        if(sqlState != null) {
          builder.characters(sqle.getSQLState());
View Full Code Here

       
          int line = getLine();
          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();
View Full Code Here

          int line = getLine();
          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();
       
View Full Code Here

     
      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

        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 ) {
            builder.startElement( new QName( "sent", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
            builder.characters( formatDate( message.getSentDate() ) );
View Full Code Here

            // 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

        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);
     
      output.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.