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
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
ConstructorsConstructorDescriptionUimaSaxVinciFrameBuilder(boolean aSupressDocumentText, boolean aIncludeSpannedTextInAnnotations, String aDocText) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetLeafContent(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, startElementMethods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping
-
Constructor Details
-
UimaSaxVinciFrameBuilder
public UimaSaxVinciFrameBuilder(boolean aSupressDocumentText, boolean aIncludeSpannedTextInAnnotations, String aDocText)
-
-
Method Details
-
getLeafContent
protected String getLeafContent(String aFrameName, Attributes aAttributes, StringBuffer aContentBuf) Overridden to supress document content and include annotation spans.- Overrides:
getLeafContentin 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:
-