|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.creole.annic.HTMLGenerator
public class HTMLGenerator
This class provides methods to export the annic patterns to HTML. The HTML provides a way to look at various annotations that span across the found annic pattern.
| Field Summary | |
|---|---|
private static int |
noOfColumnsToDraw
Number of columns to draw in the html table. |
| Constructor Summary | |
|---|---|
HTMLGenerator()
|
|
| Method Summary | |
|---|---|
private static String |
addFeatures(Map<String,String> features)
|
private static String |
columnsToDraw(PatternAnnotation[] currentTableAnnotations,
List<PatternAnnotation> rowAnnotations,
int currentPos,
List<String> colPositions)
|
private static List<PatternAnnotation> |
findOutAnnotationsOfType(PatternAnnotation[] annotations,
String type)
From given an array of pattern annotations, this method finds out the annotations of the given type. |
static String |
generateHTMLTable(Pattern pattern)
This method exports the annic pattern to HTML. |
private static int |
getColSpan(int startOffset,
int endOffset,
List<String> colPositions)
|
private static List<String> |
getColsPositions(PatternAnnotation[] annotations)
|
private static List<String> |
getRowData(PatternAnnotation[] annotations)
This method return the unique rows. |
private static int |
noOfColumnsToDraw(int start,
int end,
List<String> colPositions)
|
private static PatternAnnotation[] |
sort(PatternAnnotation[] annots)
This method is used for sorting the pattern annotations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static int noOfColumnsToDraw
| Constructor Detail |
|---|
public HTMLGenerator()
| Method Detail |
|---|
public static String generateHTMLTable(Pattern pattern)
pattern -
private static PatternAnnotation[] sort(PatternAnnotation[] annots)
annots -
private static String columnsToDraw(PatternAnnotation[] currentTableAnnotations,
List<PatternAnnotation> rowAnnotations,
int currentPos,
List<String> colPositions)
private static int noOfColumnsToDraw(int start,
int end,
List<String> colPositions)
private static List<PatternAnnotation> findOutAnnotationsOfType(PatternAnnotation[] annotations,
String type)
annotations - type -
private static int getColSpan(int startOffset,
int endOffset,
List<String> colPositions)
private static List<String> getColsPositions(PatternAnnotation[] annotations)
private static List<String> getRowData(PatternAnnotation[] annotations)
annotations -
private static String addFeatures(Map<String,String> features)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||