Author: pkluegl Date: Mon Apr 29 13:42:02 2013 New Revision: 1477063 URL: http://svn.apache.org/r1477063 Log: UIMA-2850 - renaming
Modified: uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/AnnotationWriter.java uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlAnnotator.java uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverter.java uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverterPSpan.java uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverterPSpanReplacement.java uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverterVisitor.java uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlVisitor.java uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/PlainTextAnnotator.java uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/StyleMapCreator.java uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/StyleMapFactory.java uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/XMIWriter.java Modified: uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/AnnotationWriter.java URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/AnnotationWriter.java?rev=1477063&r1=1477062&r2=1477063&view=diff ============================================================================== --- uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/AnnotationWriter.java (original) +++ uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/AnnotationWriter.java Mon Apr 29 13:42:02 2013 @@ -17,7 +17,7 @@ * under the License. */ -package org.apache.uima.textmarker.engine; +package org.apache.uima.ruta.engine; import java.io.File; import java.io.IOException; @@ -76,7 +76,7 @@ public class AnnotationWriter extends JC } - Type sdiType = cas.getTypeSystem().getType(TextMarkerEngine.SOURCE_DOCUMENT_INFORMATION); + Type sdiType = cas.getTypeSystem().getType(RutaEngine.SOURCE_DOCUMENT_INFORMATION); String filename = "output.txt"; File file = new File(output, filename); Modified: uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlAnnotator.java URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlAnnotator.java?rev=1477063&r1=1477062&r2=1477063&view=diff ============================================================================== --- uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlAnnotator.java (original) +++ uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlAnnotator.java Mon Apr 29 13:42:02 2013 @@ -17,7 +17,7 @@ * under the License. */ -package org.apache.uima.textmarker.engine; +package org.apache.uima.ruta.engine; import java.util.ArrayList; import java.util.List; @@ -33,7 +33,7 @@ import org.htmlparser.util.NodeList; import org.htmlparser.util.ParserException; public class HtmlAnnotator extends JCasAnnotator_ImplBase { - public static final String NAMESPACE = "org.apache.uima.textmarker.type.html."; + public static final String NAMESPACE = "org.apache.uima.ruta.type.html."; public static final String ONLY_CONTENT = "onlyContent"; Modified: uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverter.java URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverter.java?rev=1477063&r1=1477062&r2=1477063&view=diff ============================================================================== --- uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverter.java (original) +++ uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverter.java Mon Apr 29 13:42:02 2013 @@ -17,7 +17,7 @@ * under the License. */ -package org.apache.uima.textmarker.engine; +package org.apache.uima.ruta.engine; import java.util.HashSet; import java.util.Iterator; @@ -61,7 +61,7 @@ import org.htmlparser.util.ParserExcepti */ public class HtmlConverter extends JCasAnnotator_ImplBase { // parameter names: - public static final String NAMESPACE = "org.apache.uima.textmarker.type.html."; + public static final String NAMESPACE = "org.apache.uima.ruta.type.html."; public static final String OUTPUT_VIEW = "outputView"; Modified: uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverterPSpan.java URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverterPSpan.java?rev=1477063&r1=1477062&r2=1477063&view=diff ============================================================================== --- uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverterPSpan.java (original) +++ uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverterPSpan.java Mon Apr 29 13:42:02 2013 @@ -17,7 +17,7 @@ * under the License. */ -package org.apache.uima.textmarker.engine; +package org.apache.uima.ruta.engine; public class HtmlConverterPSpan implements Comparable<HtmlConverterPSpan> { private int begin; Modified: uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverterPSpanReplacement.java URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverterPSpanReplacement.java?rev=1477063&r1=1477062&r2=1477063&view=diff ============================================================================== --- uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverterPSpanReplacement.java (original) +++ uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverterPSpanReplacement.java Mon Apr 29 13:42:02 2013 @@ -17,7 +17,7 @@ * under the License. */ -package org.apache.uima.textmarker.engine; +package org.apache.uima.ruta.engine; public class HtmlConverterPSpanReplacement extends HtmlConverterPSpan { Modified: uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverterVisitor.java URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverterVisitor.java?rev=1477063&r1=1477062&r2=1477063&view=diff ============================================================================== --- uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverterVisitor.java (original) +++ uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlConverterVisitor.java Mon Apr 29 13:42:02 2013 @@ -17,7 +17,7 @@ * under the License. */ -package org.apache.uima.textmarker.engine; +package org.apache.uima.ruta.engine; import java.util.Set; import java.util.SortedSet; Modified: uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlVisitor.java URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlVisitor.java?rev=1477063&r1=1477062&r2=1477063&view=diff ============================================================================== --- uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlVisitor.java (original) +++ uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/HtmlVisitor.java Mon Apr 29 13:42:02 2013 @@ -17,7 +17,7 @@ * under the License. */ -package org.apache.uima.textmarker.engine; +package org.apache.uima.ruta.engine; import java.util.ArrayList; import java.util.LinkedList; Modified: uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/PlainTextAnnotator.java URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/PlainTextAnnotator.java?rev=1477063&r1=1477062&r2=1477063&view=diff ============================================================================== --- uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/PlainTextAnnotator.java (original) +++ uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/PlainTextAnnotator.java Mon Apr 29 13:42:02 2013 @@ -17,7 +17,7 @@ * under the License. */ -package org.apache.uima.textmarker.engine; +package org.apache.uima.ruta.engine; import java.io.BufferedReader; import java.io.IOException; @@ -33,11 +33,11 @@ import org.apache.uima.jcas.JCas; public class PlainTextAnnotator extends JCasAnnotator_ImplBase { - public static final String TYPE_LINE = "org.apache.uima.textmarker.type.Line"; + public static final String TYPE_LINE = "org.apache.uima.ruta.type.Line"; - public static final String TYPE_WSLINE = "org.apache.uima.textmarker.type.WSLine"; + public static final String TYPE_WSLINE = "org.apache.uima.ruta.type.WSLine"; - public static final String TYPE_PARAGRAPH = "org.apache.uima.textmarker.type.Paragraph"; + public static final String TYPE_PARAGRAPH = "org.apache.uima.ruta.type.Paragraph"; @Override public void process(JCas jcas) throws AnalysisEngineProcessException { Modified: uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/StyleMapCreator.java URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/StyleMapCreator.java?rev=1477063&r1=1477062&r2=1477063&view=diff ============================================================================== --- uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/StyleMapCreator.java (original) +++ uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/StyleMapCreator.java Mon Apr 29 13:42:02 2013 @@ -17,7 +17,7 @@ * under the License. */ -package org.apache.uima.textmarker.engine; +package org.apache.uima.ruta.engine; import java.io.IOException; @@ -47,14 +47,14 @@ public class StyleMapCreator extends JCa } styleMapLocation = (String) aContext.getConfigParameterValue(STYLE_MAP); descriptorPaths = (String[]) aContext - .getConfigParameterValue(TextMarkerEngine.DESCRIPTOR_PATHS); + .getConfigParameterValue(RutaEngine.DESCRIPTOR_PATHS); styleMapFactory = new StyleMapFactory(); } @Override public void process(JCas jcas) throws AnalysisEngineProcessException { try { - String locate = TextMarkerEngine.locate(styleMapLocation, descriptorPaths, ".xml", false); + String locate = RutaEngine.locate(styleMapLocation, descriptorPaths, ".xml", false); if (locate != null) { styleMapFactory.createStyleMap(locate, jcas); } Modified: uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/StyleMapFactory.java URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/StyleMapFactory.java?rev=1477063&r1=1477062&r2=1477063&view=diff ============================================================================== --- uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/StyleMapFactory.java (original) +++ uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/StyleMapFactory.java Mon Apr 29 13:42:02 2013 @@ -17,7 +17,7 @@ * under the License. */ -package org.apache.uima.textmarker.engine; +package org.apache.uima.ruta.engine; import java.awt.Color; import java.io.File; @@ -40,7 +40,7 @@ import org.apache.uima.cas.FSIterator; import org.apache.uima.cas.FeatureStructure; import org.apache.uima.cas.Type; import org.apache.uima.jcas.JCas; -import org.apache.uima.textmarker.type.TextMarkerColoring; +import org.apache.uima.ruta.type.RutaColoring; import org.apache.uima.tools.stylemap.ColorParser; import org.apache.uima.tools.stylemap.StyleMapEntry; import org.apache.uima.tools.stylemap.StyleMapXmlParser; @@ -190,10 +190,10 @@ public class StyleMapFactory { private List<StyleMapEntry> createStyleList(JCas jcas) { List<StyleMapEntry> result = new ArrayList<StyleMapEntry>(); - Type type = jcas.getCasType(TextMarkerColoring.type); + Type type = jcas.getCasType(RutaColoring.type); FSIterator<FeatureStructure> iterator = jcas.getFSIndexRepository().getAllIndexedFS(type); while (iterator.hasNext()) { - TextMarkerColoring each = (TextMarkerColoring) iterator.next(); + RutaColoring each = (RutaColoring) iterator.next(); StyleMapEntry entry = new StyleMapEntry(); entry.setAnnotationTypeName(each.getTargetType()); String fgColor = each.getFgColor(); Modified: uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/XMIWriter.java URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/XMIWriter.java?rev=1477063&r1=1477062&r2=1477063&view=diff ============================================================================== --- uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/XMIWriter.java (original) +++ uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/XMIWriter.java Mon Apr 29 13:42:02 2013 @@ -17,7 +17,7 @@ * under the License. */ -package org.apache.uima.textmarker.engine; +package org.apache.uima.ruta.engine; import java.io.File; import java.io.FileOutputStream; @@ -74,7 +74,7 @@ public class XMIWriter extends JCasAnnot public void process(JCas jcas) throws AnalysisEngineProcessException { CAS cas = jcas.getCas(); - Type sdiType = cas.getTypeSystem().getType(TextMarkerEngine.SOURCE_DOCUMENT_INFORMATION); + Type sdiType = cas.getTypeSystem().getType(RutaEngine.SOURCE_DOCUMENT_INFORMATION); String filename = "output.txt"; File file = new File(output, filename);