Class VinciCasDataConverter
java.lang.Object
org.apache.uima.cas_data.impl.vinci.VinciCasDataConverter
Utilities for converting a VinciFrame to and from a CasData.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendVinciFrameToCasData(AFrame aCasFrame, CasData aCasData) Converts a VinciFrame to a CasData, appending to an existing CasData.voidcasDataToVinciFrame(CasData aCasData, AFrame aParentFrame) Converts a CasData to a VinciFrame.vinciFrameToCasData(AFrame aCasFrame) Converts a VinciFrame to a CasData.voidvinciFrameToCasData(AFrame aCasFrame, CasData aCasData) Deprecated.Use appendVinciFrameToCasData(Aframe, CasData) or vinciFrameToCasData(AFrame)
-
Constructor Details
-
VinciCasDataConverter
public VinciCasDataConverter(String aUeidType, String aUeidFeature, String aCasDataDocTextType, String aCasDataDocTextFeature, String aXCasDocTextTag, boolean aIncludeAnnotationSpannedText) Creates a new VinciCasDataConverter.- Parameters:
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.
-
-
Method Details
-
casDataToVinciFrame
public void casDataToVinciFrame(CasData aCasData, AFrame aParentFrame) throws IOException, SAXException Converts a CasData to a VinciFrame.- Parameters:
aCasData- CasData to convertaParentFrame- VinciFrame to be the parent of the frame created from the CasData- Throws:
IOException- Signals that an I/O exception has occurred.SAXException- the SAX exception
-
vinciFrameToCasData
Deprecated.Use appendVinciFrameToCasData(Aframe, CasData) or vinciFrameToCasData(AFrame)Converts a VinciFrame to a CasData, appending to an existing CasData.- Parameters:
aCasFrame- VinciFrame containing XCASaCasData- CasData to which FeatureStructures from XCAS will be appended- Throws:
SAXException- the SAX exception
-
vinciFrameToCasData
Converts a VinciFrame to a CasData.- Parameters:
aCasFrame- VinciFrame containing XCAS- Returns:
- a new CasData corrsponding to the XCAS in aCasFrame
- Throws:
SAXException- the SAX exception
-
appendVinciFrameToCasData
Converts a VinciFrame to a CasData, appending to an existing CasData.- Parameters:
aCasFrame- VinciFrame containing XCASaCasData- CasData to which FeatureStructures from XCAS will be appended- Throws:
SAXException- the SAX exception
-