Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

void org::apache::uima::cas::impl::XmiCasSerializer::XmiCasDocSerializer::sendElementEvents ( List<?extends XmlElementNameAndContents elements ) throws SAXException [inline, private]

Generate startElement, characters, and endElement SAX events.

Parameters:
elementsa list of XmlElementNameAndContents objects representing the elements to generate
Exceptions:
SAXException

Definition at line 807 of file XmiCasSerializer.java.

                                                                                                           {
      Iterator<? extends XmlElementNameAndContents> childIter = elements.iterator();
      while (childIter.hasNext()) {
        XmlElementNameAndContents elem = childIter.next();
        if (elem.contents != null) {
          startElement(elem.name, emptyAttrs, 1);
          addText(elem.contents);
        } else {
          startElement(elem.name, emptyAttrs, 0);
        }
        endElement(elem.name);
      }
    }

Generated by  Doxygen 1.6.0   Back to index