Package org.exist.memtree

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


    builder.addAttribute(QNAME_RESULT_ATTR, error == null ? "pass" : "fail");
   
    if (error != null) {
      builder.startElement(ERROR_INFO, null);
      if (code != null)
        {builder.addAttribute(QNAME_ERRCODE_ATTR, code.toString());}
      if (line > -1) {
        builder.addAttribute(QNAME_LINE_ATTR, Integer.toString(line));
        builder.addAttribute(QNAME_COLUMN_ATTR, Integer.toString(column));
      }
      builder.characters(error);
View Full Code Here


    if (error != null) {
      builder.startElement(ERROR_INFO, null);
      if (code != null)
        {builder.addAttribute(QNAME_ERRCODE_ATTR, code.toString());}
      if (line > -1) {
        builder.addAttribute(QNAME_LINE_ATTR, Integer.toString(line));
        builder.addAttribute(QNAME_COLUMN_ATTR, Integer.toString(column));
      }
      builder.characters(error);
      builder.endElement();
    }
View Full Code Here

      builder.startElement(ERROR_INFO, null);
      if (code != null)
        {builder.addAttribute(QNAME_ERRCODE_ATTR, code.toString());}
      if (line > -1) {
        builder.addAttribute(QNAME_LINE_ATTR, Integer.toString(line));
        builder.addAttribute(QNAME_COLUMN_ATTR, Integer.toString(column));
      }
      builder.characters(error);
      builder.endElement();
    }
View Full Code Here

        final ProcessMonitor.JobInfo[] jobs = monitor.runningJobs();
        for (int i = 0; i < jobs.length; i++) {
            final Thread process = jobs[i].getThread();
      final Date startDate = new Date(jobs[i].getStartTime());
            builder.startElement( new QName( "job", NAMESPACE_URI, PREFIX ), null);
            builder.addAttribute( new QName("id", null, null), process.getName());
            builder.addAttribute( new QName("action", null, null), jobs[i].getAction());
      builder.addAttribute( new QName("start", null, null), new DateTimeValue(startDate).getStringValue());
            builder.addAttribute(new QName("info", null, null), jobs[i].getAddInfo().toString());
            builder.endElement();
        }
View Full Code Here

        for (int i = 0; i < jobs.length; i++) {
            final Thread process = jobs[i].getThread();
      final Date startDate = new Date(jobs[i].getStartTime());
            builder.startElement( new QName( "job", NAMESPACE_URI, PREFIX ), null);
            builder.addAttribute( new QName("id", null, null), process.getName());
            builder.addAttribute( new QName("action", null, null), jobs[i].getAction());
      builder.addAttribute( new QName("start", null, null), new DateTimeValue(startDate).getStringValue());
            builder.addAttribute(new QName("info", null, null), jobs[i].getAddInfo().toString());
            builder.endElement();
        }
View Full Code Here

            final Thread process = jobs[i].getThread();
      final Date startDate = new Date(jobs[i].getStartTime());
            builder.startElement( new QName( "job", NAMESPACE_URI, PREFIX ), null);
            builder.addAttribute( new QName("id", null, null), process.getName());
            builder.addAttribute( new QName("action", null, null), jobs[i].getAction());
      builder.addAttribute( new QName("start", null, null), new DateTimeValue(startDate).getStringValue());
            builder.addAttribute(new QName("info", null, null), jobs[i].getAddInfo().toString());
            builder.endElement();
        }

        builder.endElement();
View Full Code Here

      final Date startDate = new Date(jobs[i].getStartTime());
            builder.startElement( new QName( "job", NAMESPACE_URI, PREFIX ), null);
            builder.addAttribute( new QName("id", null, null), process.getName());
            builder.addAttribute( new QName("action", null, null), jobs[i].getAction());
      builder.addAttribute( new QName("start", null, null), new DateTimeValue(startDate).getStringValue());
            builder.addAttribute(new QName("info", null, null), jobs[i].getAddInfo().toString());
            builder.endElement();
        }

        builder.endElement();
        builder.endDocument();
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.