Class Vinci
java.lang.Object
org.apache.uima.collection.impl.cpm.vinci.Vinci
The Class Vinci.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractKEYSAsString(AFrame frame) Extract KEYS as string.private AFrameReturns a new VinciFrame.static StringgetContentFromDATACas(CasData aCas) Gets the content from DATA cas.static StringgetFeatureValueByType(CasData aCAS, String featureName) Gets the feature value by type.static AFrameproduceAFrame(String cmd, String content) Produce A frame.static AFramereplyWithAnalysis(BaseClient conn, VinciFrame requestFrame) Package theVinciFramecontaining result of the requested operation into a Vinci Data frame.static AFramereplyWithAnalysis(VinciClient conn, VinciFrame requestFrame) Package theVinciFramecontaining result of the requested operation into a Vinci Data frame.replyWithError(String errorMsg) Creates and populates an error frame.static StringstripVinciFrame(VinciFrame aFrame) Returns a content from a given VinciFrame.
-
Field Details
-
VNS_HOST
-
VNS_PORT
-
-
Constructor Details
-
Vinci
public Vinci()
-
-
Method Details
-
getAFrame
-
replyWithError
Creates and populates an error frame.- Parameters:
errorMsg- - error message to place in the error frame- Returns:
VinciFrameinstance containing error
-
replyWithAnalysis
Package theVinciFramecontaining result of the requested operation into a Vinci Data frame.- Parameters:
conn- the connectionrequestFrame-VinciFramecontaining result of thsi service operation- Returns:
VinciFrameVinciData frame.- Throws:
Exception- -
-
replyWithAnalysis
Package theVinciFramecontaining result of the requested operation into a Vinci Data frame.- Parameters:
conn- the connectionrequestFrame-VinciFramecontaining result of thsi service operation- Returns:
VinciFrameVinciData frame.- Throws:
Exception- the exception
-
produceAFrame
-
extractKEYSAsString
-
getFeatureValueByType
-
getContentFromDATACas
-
stripVinciFrame
Returns a content from a given VinciFrame.- Parameters:
aFrame- the a frame- Returns:
- the string
-