public class VinciCasDataConverter extends Object
| Constructor and Description |
|---|
VinciCasDataConverter(String aUeidType,
String aUeidFeature,
String aCasDataDocTextType,
String aCasDataDocTextFeature,
String aXCasDocTextTag,
boolean aIncludeAnnotationSpannedText)
Creates a new VinciCasDataConverter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendVinciFrameToCasData(org.apache.vinci.transport.document.AFrame aCasFrame,
org.apache.uima.cas_data.CasData aCasData)
Converts a VinciFrame to a CasData, appending to an existing CasData.
|
void |
casDataToVinciFrame(org.apache.uima.cas_data.CasData aCasData,
org.apache.vinci.transport.document.AFrame aParentFrame)
Converts a CasData to a VinciFrame.
|
org.apache.uima.cas_data.CasData |
vinciFrameToCasData(org.apache.vinci.transport.document.AFrame aCasFrame)
Converts a VinciFrame to a CasData.
|
void |
vinciFrameToCasData(org.apache.vinci.transport.document.AFrame aCasFrame,
org.apache.uima.cas_data.CasData aCasData)
Deprecated.
Use appendVinciFrameToCasData(Aframe, CasData) or vinciFrameToCasData(AFrame)
|
public VinciCasDataConverter(String aUeidType, String aUeidFeature, String aCasDataDocTextType, String aCasDataDocTextFeature, String aXCasDocTextTag, boolean aIncludeAnnotationSpannedText)
aUeidType - CasData type that contains the UEID (may be null)aUeidFeature - CasData feature that contains the UEID (may be null)aCasDataDocTextType - CasData type that contains the document textaCasDataDocTextFeature - CasData feature that contains the document textaXCasDocTextTag - XCas tag representing the document textaIncludeAnnotationSpannedText - if true, when generating XCas for an annotation, the spanned text of the annotation
will be included as the content of the XCas element.public void casDataToVinciFrame(org.apache.uima.cas_data.CasData aCasData,
org.apache.vinci.transport.document.AFrame aParentFrame)
throws IOException,
SAXException
aCasData - CasData to convertaParentFrame - VinciFrame to be the parent of the frame created from the CasDataIOException - Signals that an I/O exception has occurred.SAXException - the SAX exception@Deprecated public void vinciFrameToCasData(org.apache.vinci.transport.document.AFrame aCasFrame, org.apache.uima.cas_data.CasData aCasData) throws SAXException
aCasFrame - VinciFrame containing XCASaCasData - CasData to which FeatureStructures from XCAS will be appendedSAXException - the SAX exceptionpublic org.apache.uima.cas_data.CasData vinciFrameToCasData(org.apache.vinci.transport.document.AFrame aCasFrame)
throws SAXException
aCasFrame - VinciFrame containing XCASSAXException - the SAX exceptionpublic void appendVinciFrameToCasData(org.apache.vinci.transport.document.AFrame aCasFrame,
org.apache.uima.cas_data.CasData aCasData)
throws SAXException
aCasFrame - VinciFrame containing XCASaCasData - CasData to which FeatureStructures from XCAS will be appendedSAXException - the SAX exceptionCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.