Package org.exist.memtree

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


                    new BooleanValue(entry.canRead()).getStringValue());

            builder.addAttribute(new QName("canWrite", null, null),
                    new BooleanValue(entry.canWrite()).getStringValue());

            builder.endElement();

        }

        builder.endElement();
View Full Code Here


            builder.endElement();

        }

        builder.endElement();


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

            Diff diff = new StandardDiff(context.getBroker());
            diff.diff(doc1, doc2);
            diff.diff2XML(receiver);

            builder.endElement();
            return builder.getDocument().getNode(nodeNr);
        } catch (SAXException e) {
            throw new XPathException(this, "Caugt error while generating diff: " + e.getMessage(), e);
        } catch (DiffException e) {
            throw new XPathException(this, "Caugt error while generating diff: " + e.getMessage(), e);
View Full Code Here

                if(colValue != null)
                {
                  builder.characters(SQLUtils.escapeXmlText(colValue));
                }
               
                builder.endElement();
              }
            }

            builder.endElement();
             
View Full Code Here

               
                builder.endElement();
              }
            }

            builder.endElement();
             
            iRow++;
          }
          builder.endElement();
         
View Full Code Here

            builder.endElement();
             
            iRow++;
          }
          builder.endElement();
         
          // Change the root element count attribute to have the correct value
         
          NodeValue node = (NodeValue)builder.getDocument().getDocumentElement();
View Full Code Here

      while(i.hasNext()) {
        signature = i.next();
        writeSignature(signature, builder);
      }
    }
    builder.endElement();
    return ((DocumentImpl)builder.getDocument()).getNode(nodeNr);
  }

  /**
   * @param signature
View Full Code Here

        builder.startElement(new QName("id", SecurityManagerModule.NAMESPACE_URI, SecurityManagerModule.PREFIX), null);
       
        builder.startElement(new QName("real", SecurityManagerModule.NAMESPACE_URI, SecurityManagerModule.PREFIX), null);
        subjectToXml(builder, context.getRealUser());
        builder.endElement();

        if(context.getRealUser().getId() != context.getEffectiveUser().getId()) {
            builder.startElement(new QName("effective", SecurityManagerModule.NAMESPACE_URI, SecurityManagerModule.PREFIX), null);
            subjectToXml(builder, context.getEffectiveUser());
            builder.endElement();
View Full Code Here

        builder.endElement();

        if(context.getRealUser().getId() != context.getEffectiveUser().getId()) {
            builder.startElement(new QName("effective", SecurityManagerModule.NAMESPACE_URI, SecurityManagerModule.PREFIX), null);
            subjectToXml(builder, context.getEffectiveUser());
            builder.endElement();
        }

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

            builder.startElement(new QName("effective", SecurityManagerModule.NAMESPACE_URI, SecurityManagerModule.PREFIX), null);
            subjectToXml(builder, context.getEffectiveUser());
            builder.endElement();
        }

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