|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.tools.util.htmlview.AnnotationViewGenerator
public class AnnotationViewGenerator
Utility that uses XSL stylesheets to produce an HTML view (w/ Javascript) of an annotated document.
| Constructor Summary | |
|---|---|
AnnotationViewGenerator(java.io.File aOutputDir)
Creates a new AnnotationViewGenerator. |
|
| Method Summary | |
|---|---|
static java.lang.String |
autoGenerateStyleMap(AnalysisEngineMetaData aTaeMetaData)
Automatically generates a style map for the given text analysis engine. |
static java.lang.String |
autoGenerateStyleMap(TypeSystemDescription aTypeSystem)
Automatically generates a style map for the given type system. |
void |
autoGenerateStyleMapFile(AnalysisEngine aAE,
java.io.File aStyleMapFile)
Automatically generates a style map file for the given analysis engine. |
void |
autoGenerateStyleMapFile(AnalysisEngineMetaData aMetaData,
java.io.File aStyleMapFile)
Automatically generates a style map file for the given analysis engine metadata. |
void |
autoGenerateStyleMapFile(TypeSystemDescription aTypeSystem,
java.io.File aStyleMapFile)
Automatically generates a style map file for the given type system. |
void |
processDocument(java.io.File aInlineXmlDoc)
Processes an annotated document using the docFrame.xsl stylsheet generated by a previous call to processStyleMap(File). |
void |
processStyleMap(java.io.File aStyleMap)
Processes a user-specified file map and produces three outputs: annotations.css - A CSS stylesheet for the annotation viewer legend.html - HTML document for legend (bottom pane of viewer) docFrame.xsl - An XSL stylesheet to be applied to annotated documents during calls to processDocument(File).
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationViewGenerator(java.io.File aOutputDir)
aOutputDir - directory in which this program will write its output files.| Method Detail |
|---|
public void processStyleMap(java.io.File aStyleMap)
throws javax.xml.transform.TransformerException
processDocument(File).
aInlineXmlDoc - path to style map to be processed
javax.xml.transform.TransformerException
public void processDocument(java.io.File aInlineXmlDoc)
throws javax.xml.transform.TransformerException
processStyleMap(File). Generates a file named docView.html, which represents the
HTML view of the annotated document.
aInlineXmlDoc - path to annotated document to be processed
javax.xml.transform.TransformerExceptionpublic static java.lang.String autoGenerateStyleMap(AnalysisEngineMetaData aTaeMetaData)
aTaeMetaData - Metadata of the Text Analysis Engine whose outputs will be viewed using the generated
style map.
public static java.lang.String autoGenerateStyleMap(TypeSystemDescription aTypeSystem)
aTypeSystem - the type system for which a style map will be generated
public void autoGenerateStyleMapFile(AnalysisEngine aAE,
java.io.File aStyleMapFile)
throws java.io.IOException
aStyleMapFile.
aAE - the Analysis Engine whose outputs will be viewed using the generated style map.aStyleMapFile - file to which autogenerated style map will be written
java.io.IOException
public void autoGenerateStyleMapFile(AnalysisEngineMetaData aMetaData,
java.io.File aStyleMapFile)
throws java.io.IOException
aStyleMapFile.
aMetaData - Metadata of the Analysis Engine whose outputs will be viewed using the generated style
map.aStyleMapFile - file to which autogenerated style map will be written
java.io.IOException
public void autoGenerateStyleMapFile(TypeSystemDescription aTypeSystem,
java.io.File aStyleMapFile)
throws java.io.IOException
aStyleMapFile.
aTypeSystem - the type system for which a style map will be generatedaStyleMapFile - file to which autogenerated style map will be written
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||