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 SummaryConstructorsConstructorDescriptionUimaSaxVinciFrameBuilder(boolean aSupressDocumentText, boolean aIncludeSpannedTextInAnnotations, String aDocText) Instantiates a new uima sax vinci frame builder.
- 
Method SummaryModifier 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.SaxVinciFrameBuildercharacters, endElement, getName, setParentFrame, startDocument, startElementMethods inherited from class org.xml.sax.helpers.DefaultHandlerendDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandlerdeclaration, endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping
- 
Constructor Details- 
UimaSaxVinciFrameBuilderpublic UimaSaxVinciFrameBuilder(boolean aSupressDocumentText, boolean aIncludeSpannedTextInAnnotations, String aDocText) Instantiates a new uima sax vinci frame builder.- Parameters:
- aSupressDocumentText- the a supress document text
- aIncludeSpannedTextInAnnotations- the a include spanned text in annotations
- aDocText- the a doc text
 
 
- 
- 
Method Details- 
getLeafContentprotected String getLeafContent(String aFrameName, Attributes aAttributes, StringBuffer aContentBuf) Overridden to supress document content and include annotation spans.- Overrides:
- getLeafContentin class- SaxVinciFrameBuilder
- Parameters:
- aFrameName- the a frame name
- aAttributes- the a attributes
- aContentBuf- the a content buf
- Returns:
- the leaf content
- See Also:
 
 
-