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:
ContentHandler
,DTDHandler
,EntityResolver
,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
-
-
Constructor Summary
Constructors Constructor Description UimaSaxVinciFrameBuilder(boolean aSupressDocumentText, boolean aIncludeSpannedTextInAnnotations, String aDocText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getLeafContent(String aFrameName, Attributes aAttributes, 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
-
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, String aDocText)
-
-
Method Detail
-
getLeafContent
protected String getLeafContent(String aFrameName, Attributes aAttributes, StringBuffer aContentBuf)
Overridden to supress document content and include annotation spans.- Overrides:
getLeafContent
in classSaxVinciFrameBuilder
- Parameters:
aFrameName
- name of the FrameLeafaAttributes
- attributes of FrameLeafaContentBuf
- 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)
-
-