Class UimaSaxVinciFrameBuilder

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

    public class UimaSaxVinciFrameBuilder
    extends SaxVinciFrameBuilder
    A specialization of the general SaxVinciFrameBuilder utility for UIMA analysis engine services. Adds two options:
    • Supress document text
    • Include spanned text as character content of all annotation FSs
    • Constructor Summary

      Constructors 
      Constructor Description
      UimaSaxVinciFrameBuilder​(boolean aSupressDocumentText, boolean aIncludeSpannedTextInAnnotations, java.lang.String aDocText)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getLeafContent​(java.lang.String aFrameName, org.xml.sax.Attributes aAttributes, java.lang.StringBuffer aContentBuf)
      Overridden to supress document content and include annotation spans.
      • Methods inherited from class org.xml.sax.helpers.DefaultHandler

        endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.xml.sax.ContentHandler

        endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping
    • Constructor Detail

      • UimaSaxVinciFrameBuilder

        public UimaSaxVinciFrameBuilder​(boolean aSupressDocumentText,
                                        boolean aIncludeSpannedTextInAnnotations,
                                        java.lang.String aDocText)
    • Method Detail

      • getLeafContent

        protected java.lang.String getLeafContent​(java.lang.String aFrameName,
                                                  org.xml.sax.Attributes aAttributes,
                                                  java.lang.StringBuffer aContentBuf)
        Overridden to supress document content and include annotation spans.
        Overrides:
        getLeafContent in class SaxVinciFrameBuilder
        Parameters:
        aFrameName - name of the FrameLeaf
        aAttributes - attributes of FrameLeaf
        aContentBuf - StringBuffer containing the character data obtained from the SAX parser
        Returns:
        the data to be included in the Vinci FrameLeaf
        See Also:
        SaxVinciFrameBuilder.getLeafContent(String, Attributes, StringBuffer)