Class UimaSaxVinciFrameBuilder
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.apache.uima.adapter.vinci.util.SaxVinciFrameBuilder
-
- org.apache.uima.adapter.vinci.util.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 generalSaxVinciFrameBuilder
utility for UIMA analysis engine services. Adds two options:- Supress document text
- Include spanned text as character content of all annotation FSs
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
mDocText
The m doc text.private boolean
mIncludeSpannedTextInAnnotations
The m include spanned text in annotations.private boolean
mSupressDocumentText
The m supress document text.
-
Constructor Summary
Constructors Constructor Description UimaSaxVinciFrameBuilder(boolean aSupressDocumentText, boolean aIncludeSpannedTextInAnnotations, java.lang.String aDocText)
Instantiates a new uima sax vinci frame builder.
-
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.apache.uima.adapter.vinci.util.SaxVinciFrameBuilder
characters, endElement, getName, setParentFrame, startDocument, startElement
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Constructor Detail
-
UimaSaxVinciFrameBuilder
public UimaSaxVinciFrameBuilder(boolean aSupressDocumentText, boolean aIncludeSpannedTextInAnnotations, java.lang.String aDocText)
Instantiates a new uima sax vinci frame builder.- Parameters:
aSupressDocumentText
- the a supress document textaIncludeSpannedTextInAnnotations
- the a include spanned text in annotationsaDocText
- the a doc text
-
-
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 classSaxVinciFrameBuilder
- Parameters:
aFrameName
- the a frame nameaAttributes
- the a attributesaContentBuf
- the a content buf- Returns:
- the leaf content
- See Also:
SaxVinciFrameBuilder.getLeafContent(String, Attributes, StringBuffer)
-
-