|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.examples.PrintAnnotations
public class PrintAnnotations
A simple example of how to extract information from the CAS. This example retrieves all annotations of a specified type from a CAS and prints them (along with all of their features) to a PrintStream.
Constructor Summary | |
---|---|
PrintAnnotations()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Main program for testing this class. |
static void |
printAnnotations(CAS aCAS,
java.io.PrintStream aOut)
Prints all Annotations to a PrintStream. |
static void |
printAnnotations(CAS aCAS,
Type aAnnotType,
java.io.PrintStream aOut)
Prints all Annotations of a specified Type to a PrintStream. |
static void |
printFS(FeatureStructure aFS,
CAS aCAS,
int aNestingLevel,
java.io.PrintStream aOut)
Prints a FeatureStructure to a PrintStream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrintAnnotations()
Method Detail |
---|
public static void printAnnotations(CAS aCAS, java.io.PrintStream aOut)
aCAS
- the CAS containing the FeatureStructures to printaOut
- the PrintStream to which output will be writtenpublic static void printAnnotations(CAS aCAS, Type aAnnotType, java.io.PrintStream aOut)
aCAS
- the CAS containing the FeatureStructures to printaAnnotType
- the Type of Annotation to be printedaOut
- the PrintStream to which output will be writtenpublic static void printFS(FeatureStructure aFS, CAS aCAS, int aNestingLevel, java.io.PrintStream aOut)
aFS
- the FeatureStructure to printaCAS
- the CAS containing the FeatureStructureaNestingLevel
- number of tabs to print before each lineaOut
- the PrintStream to which output will be writtenpublic static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |