Examples of startElement()


Examples of org.eclipse.persistence.oxm.record.UnmarshalRecord.startElement()

        unmarshalRecord.setUnmarshaller(parentRecord.getUnmarshaller());
        unmarshalRecord.setXMLReader(parentRecord.getXMLReader());
        unmarshalRecord.startDocument();
        unmarshalRecord.setNamespaceMap(namespaceMap);
        unmarshalRecord.setUriToPrefixMap(uriToPrefixMap);
        unmarshalRecord.startElement(namespaceURI, localName, qName, atts);

        parentRecord.getXMLReader().setContentHandler(unmarshalRecord);

        try {
            unmarshalRecord.getXMLReader().setProperty("http://xml.org/sax/properties/lexical-handler", unmarshalRecord);
View Full Code Here

Examples of org.eclipse.persistence.oxm.unmapped.UnmappedContentHandler.startElement()

                        }
                       
                        UnmappedContentHandlerWrapper unmappedContentHandlerWrapper = new UnmappedContentHandlerWrapper(unmappedContentHandler, this);
                        unmappedContentHandler.setUnmarshalRecord(unmappedContentHandlerWrapper);

                        unmappedContentHandler.startElement(namespaceURI, localName, qName, atts);
                        xmlReader.setContentHandler(unmappedContentHandler);

                        setObject(unmappedContentHandlerWrapper.getCurrentObject());
                        return;
View Full Code Here

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

        context.pushDocumentContext();

        try {
            final MemTreeBuilder builder = context.getDocumentBuilder();
            final int            nodeNr  = builder.startElement( DIRECTORY_ELEMENT, null );

            if( dir.isDirectory() && dir.canRead() ) {
                final Pattern pattern = Pattern.compile( BackupDirectory.FILE_REGEX );
                final Matcher matcher = pattern.matcher( "" );
                final File[]  files   = dir.listFiles();
View Full Code Here

Examples of org.exist.util.serializer.SAXSerializer.startElement()

            if (queryHistory.size() > 20) {
                p = queryHistory.size() - 20;
            }
            final AttributesImpl attrs = new AttributesImpl();
            serializer.startDocument();
            serializer.startElement("", "history", "history", attrs);
            for(final ListIterator<String> i = queryHistory.listIterator(p); i.hasNext(); ) {
                serializer.startElement("", "query", "query", attrs);
                final String next = i.next();
                serializer.characters(next.toCharArray(), 0, next.length());
                serializer.endElement("", "query", "query");
View Full Code Here

Examples of org.exolab.castor.xml.UnmarshalHandler.startElement()

    Unmarshaller unmarshaller = new Unmarshaller(dataSource);
    UnmarshalHandler handler = unmarshaller.createHandler();
   
    try {
      handler.startDocument();
      handler.startElement("data-source", null);

      for (int i = 0; i < parameters.length; i++) {
         param = (Param) parameters[i];
         handler.startElement(param.getName(), null);
         handler.characters(param.getValue().toCharArray(), 0, param.getValue().length());
View Full Code Here

Examples of org.formulacompiler.spreadsheet.internal.odf.xml.stream.ElementWriter.startElement()

          startElement( null );
          break;
        case '\t':
          spaceWriter.flush();
          charWriter.flush();
          tabWriter.startElement( null );
          tabWriter.endElement();
          break;
        case ' ':
          charWriter.flush();
          spaceWriter.add();
View Full Code Here

Examples of org.gradle.internal.html.SimpleHtmlWriter.startElement()

            File outputFile = new File(outputDirectory, name);
            IoActions.writeTextFile(outputFile, "utf-8", new ErroringAction<Writer>() {
                @Override
                protected void doExecute(Writer writer) throws Exception {
                    SimpleHtmlWriter htmlWriter = new SimpleHtmlWriter(writer, "");
                    htmlWriter.startElement("html");
                    renderer.render(model, new DefaultHtmlPageBuilder<SimpleHtmlWriter>(prefix(name), htmlWriter));
                    htmlWriter.endElement();
                }
            });
        }
View Full Code Here

Examples of org.gradle.internal.xml.SimpleXmlWriter.startElement()

        String className = result.getClassName();
        long classId = result.getId();

        try {
            SimpleXmlWriter writer = new SimpleXmlWriter(output, "  ");
            writer.startElement("testsuite")
                    .attribute("name", className)
                    .attribute("tests", String.valueOf(result.getTestsCount()))
                    .attribute("skipped", String.valueOf(result.getSkippedCount()))
                    .attribute("failures", String.valueOf(result.getFailuresCount()))
                    .attribute("errors", "0")
View Full Code Here

Examples of org.iso_relax.dispatcher.IslandVerifier.startElement()

        // switch to the child Verifier.
        IslandVerifier iv = is.createNewVerifier(namespaceUri,rules);
        dispatcher.switchVerifier( iv );
       
        // simulate this startElement event
        iv.startElement( namespaceUri, localName, qName, atts );
    }
   
   
    /**
     * switch to another IslandVerifier to validate anyOtherElement.
View Full Code Here

Examples of org.jasig.portal.StructureAttributesIncorporationFilter.startElement()

                    // if operating in the detach mode, need wrap everything
                    // in a document node and a <layout_fragment> node
                    boolean detachMode = !rootNodeId.equals(UPFileSpec.USER_LAYOUT_ROOT_NODE);
                    if (detachMode) {
                        saif.startDocument();
                        saif.startElement("",
                                "layout_fragment",
                                "layout_fragment",
                                new org.xml.sax.helpers.AttributesImpl());

                        //                            emptyt.transform(new DOMSource(rElement),new SAXResult(new ChannelSAXStreamFilter((ContentHandler)saif)));
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.