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 CasDataIOExceptionSAXException@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 appendedSAXExceptionpublic org.apache.uima.cas_data.CasData vinciFrameToCasData(org.apache.vinci.transport.document.AFrame aCasFrame)
throws SAXException
aCasFrame - VinciFrame containing XCASSAXExceptionpublic 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 appendedSAXExceptionCopyright © 2006–2014 The Apache Software Foundation. All rights reserved.