Author: pkluegl
Date: Fri Apr 26 14:05:09 2013
New Revision: 1476209

URL: http://svn.apache.org/r1476209
Log:
UIMA-2834
- added example for ExampleCondition

Added:
    
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/ExampleConditionEngine.xml
    
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/ExampleConditionTypeSystem.xml
    
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/script/uima/textmarker/ExampleCondition.tm
    uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/test/temp/
    uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/test/uima/
    
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/test/uima/textmarker/
    
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/test/uima/textmarker/ExampleAction/
    
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/test/uima/textmarker/ExampleAction/results/
    
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/test/uima/textmarker/ExampleCondition/
    
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/test/uima/textmarker/ExampleCondition/results/
Modified:
    
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/ExampleActionEngine.xml
    
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/input/test.txt
    
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/output/test.txt.xmi
    
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/script/uima/textmarker/ExampleAction.tm

Modified: 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/ExampleActionEngine.xml
URL: 
http://svn.apache.org/viewvc/uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/ExampleActionEngine.xml?rev=1476209&r1=1476208&r2=1476209&view=diff
==============================================================================
--- 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/ExampleActionEngine.xml
 (original)
+++ 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/ExampleActionEngine.xml
 Fri Apr 26 14:05:09 2013
@@ -197,7 +197,7 @@
                 <name>scriptPaths</name>
                 <value>
                     <array>
-                        
<string>D:/work/runtime-EclipseApplication/ExtensionsExample/script</string>
+                        
<string>D:/work/workspace-textmarker/ExtensionsExample/script</string>
                     </array>
                 </value>
             </nameValuePair>
@@ -205,7 +205,7 @@
                 <name>descriptorPaths</name>
                 <value>
                     <array>
-                        
<string>D:/work/runtime-EclipseApplication/ExtensionsExample/descriptor</string>
+                        
<string>D:/work/workspace-textmarker/ExtensionsExample/descriptor</string>
                     </array>
                 </value>
             </nameValuePair>
@@ -213,7 +213,7 @@
                 <name>resourcePaths</name>
                 <value>
                     <array>
-                        
<string>D:\work\runtime-EclipseApplication\ExtensionsExample\resources</string>
+                        
<string>D:\work\workspace-textmarker\ExtensionsExample\resources</string>
                     </array>
                 </value>
             </nameValuePair>
@@ -233,6 +233,7 @@
                 <name>additionalExtensions</name>
                 <value>
                     <array>
+                        
<string>org.apache.uima.textmarker.example.extensions.ExampleConditionExtension</string>
                         
<string>org.apache.uima.textmarker.example.extensions.ExampleActionExtension</string>
                     </array>
                 </value>

Added: 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/ExampleConditionEngine.xml
URL: 
http://svn.apache.org/viewvc/uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/ExampleConditionEngine.xml?rev=1476209&view=auto
==============================================================================
--- 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/ExampleConditionEngine.xml
 (added)
+++ 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/ExampleConditionEngine.xml
 Fri Apr 26 14:05:09 2013
@@ -0,0 +1,292 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier";>
+    <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+    <primitive>true</primitive>
+    
<annotatorImplementationName>org.apache.uima.textmarker.engine.TextMarkerEngine</annotatorImplementationName>
+    <analysisEngineMetaData>
+        <name>BasicEngine</name>
+        <description/>
+        <version>1.0</version>
+        <vendor/>
+        <configurationParameters searchStrategy="language_fallback">
+            <configurationParameter>
+                <name>seeders</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>debug</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>additionalScripts</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>profile</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>debugWithMatches</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>statistics</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>additionalEngines</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>additionalExtensions</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>debugOnlyFor</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>scriptEncoding</name>
+                <type>String</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>additionalEngineLoaders</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>resourcePaths</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>defaultFilteredTypes</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>mainScript</name>
+                <type>String</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>scriptPaths</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>descriptorPaths</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>removeBasics</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>dynamicAnchoring</name>
+                <description>Activates dynamic achoring (possible speed 
up).</description>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>lowMemoryProfile</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>createdBy</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>simpleGreedyForComposed</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+        </configurationParameters>
+        <configurationParameterSettings>
+            <nameValuePair>
+                <name>debug</name>
+                <value>
+                    <boolean>false</boolean>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>profile</name>
+                <value>
+                    <boolean>false</boolean>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>debugWithMatches</name>
+                <value>
+                    <boolean>true</boolean>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>defaultFilteredTypes</name>
+                <value>
+                    <array>
+                        <string>org.apache.uima.textmarker.type.SPACE</string>
+                        <string>org.apache.uima.textmarker.type.NBSP</string>
+                        <string>org.apache.uima.textmarker.type.BREAK</string>
+                        <string>org.apache.uima.textmarker.type.MARKUP</string>
+                    </array>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>removeBasics</name>
+                <value>
+                    <boolean>false</boolean>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>seeders</name>
+                <value>
+                    <array>
+                        
<string>org.apache.uima.textmarker.seed.DefaultSeeder</string>
+                    </array>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>createdBy</name>
+                <value>
+                    <boolean>false</boolean>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>mainScript</name>
+                <value>
+                    <string>uima.textmarker.ExampleCondition</string>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>scriptPaths</name>
+                <value>
+                    <array>
+                        
<string>D:/work/workspace-textmarker/ExtensionsExample/script</string>
+                    </array>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>descriptorPaths</name>
+                <value>
+                    <array>
+                        
<string>D:/work/workspace-textmarker/ExtensionsExample/descriptor</string>
+                    </array>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>resourcePaths</name>
+                <value>
+                    <array>
+                        
<string>D:\work\workspace-textmarker\ExtensionsExample\resources</string>
+                    </array>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>additionalScripts</name>
+                <value>
+                    <array/>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>additionalEngines</name>
+                <value>
+                    <array/>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>additionalExtensions</name>
+                <value>
+                    <array>
+                        
<string>org.apache.uima.textmarker.example.extensions.ExampleConditionExtension</string>
+                        
<string>org.apache.uima.textmarker.example.extensions.ExampleActionExtension</string>
+                    </array>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>additionalEngineLoaders</name>
+                <value>
+                    <array/>
+                </value>
+            </nameValuePair>
+        </configurationParameterSettings>
+        <typeSystemDescription>
+            <name>uima.textmarker.ExampleConditionTypeSystem</name>
+            <imports>
+                <import location="../../BasicTypeSystem.xml"/>
+            </imports>
+            <types>
+                <typeDescription>
+                    <name>uima.textmarker.ExampleCondition.BeforeMe</name>
+                    <description>Type defined in 
uima.textmarker.ExampleCondition</description>
+                    <supertypeName>uima.tcas.Annotation</supertypeName>
+                </typeDescription>
+            </types>
+        </typeSystemDescription>
+        <typePriorities>
+            <priorityList>
+                <type>org.apache.uima.textmarker.type.TextMarkerFrame</type>
+                <type>uima.tcas.Annotation</type>
+                <type>org.apache.uima.textmarker.type.TextMarkerBasic</type>
+            </priorityList>
+        </typePriorities>
+        <fsIndexCollection/>
+        <capabilities>
+            <capability>
+                <inputs/>
+                <outputs/>
+                <languagesSupported/>
+            </capability>
+            <capability>
+                <inputs>
+                    <type>uima.textmarker.ExampleCondition.BeforeMe</type>
+                </inputs>
+                <outputs>
+                    <type>uima.textmarker.ExampleCondition.BeforeMe</type>
+                </outputs>
+                <languagesSupported/>
+            </capability>
+        </capabilities>
+        <operationalProperties>
+            <modifiesCas>true</modifiesCas>
+            <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
+            <outputsNewCASes>true</outputsNewCASes>
+        </operationalProperties>
+    </analysisEngineMetaData>
+    <resourceManagerConfiguration/>
+</analysisEngineDescription>

Added: 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/ExampleConditionTypeSystem.xml
URL: 
http://svn.apache.org/viewvc/uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/ExampleConditionTypeSystem.xml?rev=1476209&view=auto
==============================================================================
--- 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/ExampleConditionTypeSystem.xml
 (added)
+++ 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/ExampleConditionTypeSystem.xml
 Fri Apr 26 14:05:09 2013
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<typeSystemDescription xmlns="http://uima.apache.org/resourceSpecifier";>
+    <name>uima.textmarker.ExampleConditionTypeSystem</name>
+    <imports>
+        <import location="../../BasicTypeSystem.xml"/>
+    </imports>
+    <types>
+        <typeDescription>
+            <name>uima.textmarker.ExampleCondition.BeforeMe</name>
+            <description>Type defined in 
uima.textmarker.ExampleCondition</description>
+            <supertypeName>uima.tcas.Annotation</supertypeName>
+        </typeDescription>
+    </types>
+</typeSystemDescription>

Modified: 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/input/test.txt
URL: 
http://svn.apache.org/viewvc/uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/input/test.txt?rev=1476209&r1=1476208&r2=1476209&view=diff
==============================================================================
--- 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/input/test.txt 
(original)
+++ 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/input/test.txt 
Fri Apr 26 14:05:09 2013
@@ -1 +1,2 @@
-This is a test.
\ No newline at end of file
+This is a test.
+1900/12/24 and 24.4.1982
\ No newline at end of file

Modified: 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/output/test.txt.xmi
URL: 
http://svn.apache.org/viewvc/uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/output/test.txt.xmi?rev=1476209&r1=1476208&r2=1476209&view=diff
==============================================================================
--- 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/output/test.txt.xmi
 (original)
+++ 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/output/test.txt.xmi
 Fri Apr 26 14:05:09 2013
@@ -1 +1 @@
-<?xml version="1.0" encoding="UTF-8"?><xmi:XMI 
xmlns:cas="http:///uima/cas.ecore"; 
xmlns:type="http:///org/apache/uima/textmarker/type.ecore"; 
xmlns:xmi="http://www.omg.org/XMI"; xmlns:tcas="http:///uima/tcas.ecore"; 
xmi:version="2.0"><cas:NULL xmi:id="0"/><cas:Sofa xmi:id="1" sofaNum="1" 
sofaID="_InitialView" mimeType="text" sofaString="This is a 
test."/><tcas:DocumentAnnotation xmi:id="8" sofa="1" begin="0" end="15" 
language="x-unspecified"/><type:CW xmi:id="13" sofa="1" begin="0" 
end="4"/><type:CW xmi:id="89" sofa="1" begin="0" end="4"/><type:SPACE 
xmi:id="17" sofa="1" begin="4" end="5"/><type:SPACE xmi:id="25" sofa="1" 
begin="7" end="8"/><type:SPACE xmi:id="33" sofa="1" begin="9" 
end="10"/><type:SW xmi:id="21" sofa="1" begin="5" end="7"/><type:SW xmi:id="29" 
sofa="1" begin="8" end="9"/><type:SW xmi:id="37" sofa="1" begin="10" 
end="14"/><type:PERIOD xmi:id="41" sofa="1" begin="14" 
end="15"/><type:TextMarkerBasic xmi:id="45" sofa="1" begin="0" 
end="4"/><type:TextMarkerBasic xm
 i:id="50" sofa="1" begin="4" end="5"/><type:TextMarkerBasic xmi:id="55" 
sofa="1" begin="5" end="7"/><type:TextMarkerBasic xmi:id="60" sofa="1" 
begin="7" end="8"/><type:TextMarkerBasic xmi:id="65" sofa="1" begin="8" 
end="9"/><type:TextMarkerBasic xmi:id="70" sofa="1" begin="9" 
end="10"/><type:TextMarkerBasic xmi:id="75" sofa="1" begin="10" 
end="14"/><type:TextMarkerBasic xmi:id="80" sofa="1" begin="14" 
end="15"/><type:TextMarkerBasic xmi:id="108" sofa="1" begin="10" 
end="14"/><type:DebugRuleApply xmi:id="93" sofa="1" begin="5" end="7" time="0" 
applied="0" tried="0" id="0"/><type:SEMICOLON xmi:id="104" sofa="1" begin="8" 
end="9"/><type:DebugMatchedRuleMatch xmi:id="113" sofa="1" begin="14" end="15" 
time="0" matched="false"/><cas:View sofa="1" members="8 13 89 17 25 33 21 29 37 
41 45 50 55 60 65 70 75 80 108 93 104 113"/></xmi:XMI>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?><xmi:XMI 
xmlns:cas="http:///uima/cas.ecore"; 
xmlns:type="http:///org/apache/uima/textmarker/type.ecore"; 
xmlns:xmi="http://www.omg.org/XMI"; 
xmlns:ExampleCondition="http:///uima/textmarker/ExampleCondition.ecore"; 
xmlns:tcas="http:///uima/tcas.ecore"; xmi:version="2.0"><cas:NULL 
xmi:id="0"/><cas:Sofa xmi:id="1" sofaNum="1" sofaID="_InitialView" 
mimeType="text" sofaString="This is a test.&#13;&#10;1900/12/24 and 
24.4.1982"/><tcas:DocumentAnnotation xmi:id="8" sofa="1" begin="0" end="41" 
language="x-unspecified"/><type:CW xmi:id="13" sofa="1" begin="0" 
end="4"/><type:SPACE xmi:id="17" sofa="1" begin="4" end="5"/><type:SPACE 
xmi:id="25" sofa="1" begin="7" end="8"/><type:SPACE xmi:id="33" sofa="1" 
begin="9" end="10"/><type:SPACE xmi:id="73" sofa="1" begin="27" 
end="28"/><type:SPACE xmi:id="81" sofa="1" begin="31" end="32"/><type:SW 
xmi:id="21" sofa="1" begin="5" end="7"/><type:SW xmi:id="29" sofa="1" begin="8" 
end="9"/><type:SW xmi:id="37" sofa="
 1" begin="10" end="14"/><type:SW xmi:id="77" sofa="1" begin="28" 
end="31"/><type:PERIOD xmi:id="41" sofa="1" begin="14" end="15"/><type:PERIOD 
xmi:id="89" sofa="1" begin="34" end="35"/><type:PERIOD xmi:id="97" sofa="1" 
begin="36" end="37"/><type:BREAK xmi:id="45" sofa="1" begin="15" 
end="16"/><type:BREAK xmi:id="49" sofa="1" begin="16" end="17"/><type:NUM 
xmi:id="53" sofa="1" begin="17" end="21"/><type:NUM xmi:id="61" sofa="1" 
begin="22" end="24"/><type:NUM xmi:id="69" sofa="1" begin="25" 
end="27"/><type:NUM xmi:id="85" sofa="1" begin="32" end="34"/><type:NUM 
xmi:id="93" sofa="1" begin="35" end="36"/><type:NUM xmi:id="101" sofa="1" 
begin="37" end="41"/><type:SPECIAL xmi:id="57" sofa="1" begin="21" 
end="22"/><type:SPECIAL xmi:id="65" sofa="1" begin="24" 
end="25"/><type:TextMarkerBasic xmi:id="105" sofa="1" begin="0" 
end="4"/><type:TextMarkerBasic xmi:id="110" sofa="1" begin="4" 
end="5"/><type:TextMarkerBasic xmi:id="115" sofa="1" begin="5" 
end="7"/><type:TextMarkerBasic xmi:i
 d="120" sofa="1" begin="7" end="8"/><type:TextMarkerBasic xmi:id="125" 
sofa="1" begin="8" end="9"/><type:TextMarkerBasic xmi:id="130" sofa="1" 
begin="9" end="10"/><type:TextMarkerBasic xmi:id="135" sofa="1" begin="10" 
end="14"/><type:TextMarkerBasic xmi:id="140" sofa="1" begin="14" 
end="15"/><type:TextMarkerBasic xmi:id="145" sofa="1" begin="15" 
end="16"/><type:TextMarkerBasic xmi:id="150" sofa="1" begin="16" 
end="17"/><type:TextMarkerBasic xmi:id="155" sofa="1" begin="17" 
end="21"/><type:TextMarkerBasic xmi:id="160" sofa="1" begin="21" 
end="22"/><type:TextMarkerBasic xmi:id="165" sofa="1" begin="22" 
end="24"/><type:TextMarkerBasic xmi:id="170" sofa="1" begin="24" 
end="25"/><type:TextMarkerBasic xmi:id="175" sofa="1" begin="25" 
end="27"/><type:TextMarkerBasic xmi:id="180" sofa="1" begin="27" 
end="28"/><type:TextMarkerBasic xmi:id="185" sofa="1" begin="28" 
end="31"/><type:TextMarkerBasic xmi:id="190" sofa="1" begin="31" 
end="32"/><type:TextMarkerBasic xmi:id="195" sofa="1" be
 gin="32" end="34"/><type:TextMarkerBasic xmi:id="200" sofa="1" begin="34" 
end="35"/><type:TextMarkerBasic xmi:id="205" sofa="1" begin="35" 
end="36"/><type:TextMarkerBasic xmi:id="210" sofa="1" begin="36" 
end="37"/><type:TextMarkerBasic xmi:id="215" sofa="1" begin="37" 
end="41"/><ExampleCondition:BeforeMe xmi:id="352" sofa="1" begin="17" 
end="27"/><type:DebugMatchedRuleMatch xmi:id="424" sofa="1" begin="17" end="27" 
time="21" elements="432" matched="true" 
delegates=""/><type:DebugMatchedRuleMatch xmi:id="1334" sofa="1" begin="0" 
end="41" time="6" elements="1342" matched="true" 
delegates=""/><type:DebugFailedRuleMatch xmi:id="595" sofa="1" begin="22" 
end="27" time="21" elements="603" matched="false"/><type:DebugFailedRuleMatch 
xmi:id="749" sofa="1" begin="25" end="27" time="21" elements="757" 
matched="false"/><type:DebugFailedRuleMatch xmi:id="869" sofa="1" begin="32" 
end="41" time="21" elements="877" matched="false"/><type:DebugFailedRuleMatch 
xmi:id="1038" sofa="1" begin="35
 " end="41" time="21" elements="1046" 
matched="false"/><type:DebugFailedRuleMatch xmi:id="1192" sofa="1" begin="37" 
end="41" time="21" elements="1200" matched="false"/><type:DebugBlockApply 
xmi:id="401" sofa="1" begin="0" end="41" time="27" 
element="BLOCK(ExampleCondition) Document " applied="1" tried="1" rules="1334" 
id="0" innerApply="413"/><type:Statistics xmi:id="1387" total="11.0 10.0 1.0" 
amount="6 12 1" part="1.8333 0.8333 
1.0"><name>OR</name><name>ExampleCondition</name><name>MARK</name></type:Statistics><type:DebugCreatedBy
 xmi:id="220" rule="provided" annotation="8" script="" 
id="-1"/><type:DebugCreatedBy xmi:id="225" rule="provided" annotation="13" 
script="" id="-1"/><type:DebugCreatedBy xmi:id="230" rule="provided" 
annotation="17" script="" id="-1"/><type:DebugCreatedBy xmi:id="235" 
rule="provided" annotation="21" script="" id="-1"/><type:DebugCreatedBy 
xmi:id="240" rule="provided" annotation="25" script="" 
id="-1"/><type:DebugCreatedBy xmi:id="245" rule="provided
 " annotation="29" script="" id="-1"/><type:DebugCreatedBy xmi:id="250" 
rule="provided" annotation="33" script="" id="-1"/><type:DebugCreatedBy 
xmi:id="255" rule="provided" annotation="37" script="" 
id="-1"/><type:DebugCreatedBy xmi:id="260" rule="provided" annotation="41" 
script="" id="-1"/><type:DebugCreatedBy xmi:id="265" rule="provided" 
annotation="45" script="" id="-1"/><type:DebugCreatedBy xmi:id="270" 
rule="provided" annotation="49" script="" id="-1"/><type:DebugCreatedBy 
xmi:id="275" rule="provided" annotation="53" script="" 
id="-1"/><type:DebugCreatedBy xmi:id="280" rule="provided" annotation="57" 
script="" id="-1"/><type:DebugCreatedBy xmi:id="285" rule="provided" 
annotation="61" script="" id="-1"/><type:DebugCreatedBy xmi:id="290" 
rule="provided" annotation="65" script="" id="-1"/><type:DebugCreatedBy 
xmi:id="295" rule="provided" annotation="69" script="" 
id="-1"/><type:DebugCreatedBy xmi:id="300" rule="provided" annotation="73" 
script="" id="-1"/><type:DebugCreate
 dBy xmi:id="305" rule="provided" annotation="77" script="" 
id="-1"/><type:DebugCreatedBy xmi:id="310" rule="provided" annotation="81" 
script="" id="-1"/><type:DebugCreatedBy xmi:id="315" rule="provided" 
annotation="85" script="" id="-1"/><type:DebugCreatedBy xmi:id="320" 
rule="provided" annotation="89" script="" id="-1"/><type:DebugCreatedBy 
xmi:id="325" rule="provided" annotation="93" script="" 
id="-1"/><type:DebugCreatedBy xmi:id="330" rule="provided" annotation="97" 
script="" id="-1"/><type:DebugCreatedBy xmi:id="335" rule="provided" 
annotation="101" script="" id="-1"/><type:DebugCreatedBy xmi:id="356" 
rule="(NUM (PERIOD | SPECIAL) NUM (PERIOD | SPECIAL) NUM){OR(ExampleCondition, 
ExampleCondition) -&gt; MARK(BeforeMe)} " annotation="352" 
script="uima.textmarker.ExampleCondition" id="1"/><type:DebugRuleApply 
xmi:id="413" sofa="1" begin="17" end="41" time="21" element="(NUM (PERIOD | 
SPECIAL) NUM (PERIOD | SPECIAL) NUM){OR(ExampleCondition, ExampleCondition) 
-&gt; MARK(Befo
 reMe)} " applied="1" tried="6" rules="424 595 749 869 1038 1192" id="1" 
script="uima.textmarker.ExampleCondition"/><type:DebugRuleElementMatches 
xmi:id="1270" matches="" element="NUM" 
ruleAnchor="false"/><type:DebugRuleElementMatches xmi:id="1264" matches="" 
element="(PERIOD | SPECIAL)" ruleAnchor="false"/><type:DebugRuleElementMatches 
xmi:id="1258" matches="" element="NUM" 
ruleAnchor="false"/><type:DebugEvaluatedCondition xmi:id="1249" 
element="(PERIOD | SPECIAL)" value="false"/><type:DebugRuleElementMatch 
xmi:id="1241" sofa="1" begin="0" end="0" time="0" baseCondition="1249" 
conditions=""/><type:DebugRuleElementMatches xmi:id="1237" matches="1241" 
element="(PERIOD | SPECIAL)" ruleAnchor="false"/><type:DebugEvaluatedCondition 
xmi:id="1228" element="NUM" value="true"/><type:DebugRuleElementMatch 
xmi:id="1220" sofa="1" begin="37" end="41" time="0" baseCondition="1228" 
conditions=""/><type:DebugRuleElementMatches xmi:id="1216" matches="1220" 
element="NUM" ruleAnchor="true"/><t
 ype:DebugEvaluatedCondition xmi:id="1293" 
element="ExampleCondition(&quot;1981/02/24&quot;, &quot;yyyy/mm/dd&quot;)" 
value="false" conditions=""/><type:DebugEvaluatedCondition xmi:id="1287" 
element="ExampleCondition(&quot;24.02.1981&quot;, &quot;dd.mm.yyyy&quot;)" 
value="false" conditions=""/><type:DebugEvaluatedCondition xmi:id="1283" 
element="OR(ExampleCondition, ExampleCondition)" value="false" conditions="1287 
1293"/><type:DebugEvaluatedCondition xmi:id="1212" element="(NUM (PERIOD | 
SPECIAL) NUM (PERIOD | SPECIAL) NUM){OR(ExampleCondition, ExampleCondition) 
-&gt; MARK(BeforeMe)}" value="false"/><type:DebugRuleElementMatch xmi:id="1204" 
sofa="1" begin="37" end="41" time="0" baseCondition="1212" conditions="1283" 
elements="1216 1237 1258 1264 1270"/><type:DebugRuleElementMatches 
xmi:id="1200" matches="1204" element="(NUM (PERIOD | SPECIAL) NUM (PERIOD | 
SPECIAL) NUM){OR(ExampleCondition, ExampleCondition) -&gt; MARK(BeforeMe)}" 
ruleAnchor="false"/><type:DebugRuleElementMa
 tches xmi:id="1146" matches="" element="NUM" 
ruleAnchor="false"/><type:DebugEvaluatedCondition xmi:id="1137" 
element="(PERIOD | SPECIAL)" value="false"/><type:DebugRuleElementMatch 
xmi:id="1129" sofa="1" begin="0" end="0" time="0" baseCondition="1137" 
conditions=""/><type:DebugRuleElementMatches xmi:id="1125" matches="1129" 
element="(PERIOD | SPECIAL)" ruleAnchor="false"/><type:DebugEvaluatedCondition 
xmi:id="1116" element="NUM" value="true"/><type:DebugRuleElementMatch 
xmi:id="1108" sofa="1" begin="37" end="41" time="0" baseCondition="1116" 
conditions=""/><type:DebugRuleElementMatches xmi:id="1104" matches="1108" 
element="NUM" ruleAnchor="false"/><type:DebugEvaluatedCondition xmi:id="1095" 
element="(PERIOD | SPECIAL)" value="true"/><type:DebugRuleElementMatch 
xmi:id="1087" sofa="1" begin="36" end="37" time="0" baseCondition="1095" 
conditions=""/><type:DebugRuleElementMatches xmi:id="1083" matches="1087" 
element="(PERIOD | SPECIAL)" ruleAnchor="false"/><type:DebugEvaluatedCo
 ndition xmi:id="1074" element="NUM" value="true"/><type:DebugRuleElementMatch 
xmi:id="1066" sofa="1" begin="35" end="36" time="0" baseCondition="1074" 
conditions=""/><type:DebugRuleElementMatches xmi:id="1062" matches="1066" 
element="NUM" ruleAnchor="true"/><type:DebugEvaluatedCondition xmi:id="1169" 
element="ExampleCondition(&quot;1981/02/24&quot;, &quot;yyyy/mm/dd&quot;)" 
value="false" conditions=""/><type:DebugEvaluatedCondition xmi:id="1163" 
element="ExampleCondition(&quot;24.02.1981&quot;, &quot;dd.mm.yyyy&quot;)" 
value="false" conditions=""/><type:DebugEvaluatedCondition xmi:id="1159" 
element="OR(ExampleCondition, ExampleCondition)" value="false" conditions="1163 
1169"/><type:DebugEvaluatedCondition xmi:id="1058" element="(NUM (PERIOD | 
SPECIAL) NUM (PERIOD | SPECIAL) NUM){OR(ExampleCondition, ExampleCondition) 
-&gt; MARK(BeforeMe)}" value="false"/><type:DebugRuleElementMatch xmi:id="1050" 
sofa="1" begin="35" end="41" time="0" baseCondition="1058" conditions="1159" ele
 ments="1062 1083 1104 1125 1146"/><type:DebugRuleElementMatches xmi:id="1046" 
matches="1050" element="(NUM (PERIOD | SPECIAL) NUM (PERIOD | SPECIAL) 
NUM){OR(ExampleCondition, ExampleCondition) -&gt; MARK(BeforeMe)}" 
ruleAnchor="false"/><type:DebugEvaluatedCondition xmi:id="989" element="NUM" 
value="true"/><type:DebugRuleElementMatch xmi:id="981" sofa="1" begin="37" 
end="41" time="0" baseCondition="989" 
conditions=""/><type:DebugRuleElementMatches xmi:id="977" matches="981" 
element="NUM" ruleAnchor="false"/><type:DebugEvaluatedCondition xmi:id="968" 
element="(PERIOD | SPECIAL)" value="true"/><type:DebugRuleElementMatch 
xmi:id="960" sofa="1" begin="36" end="37" time="0" baseCondition="968" 
conditions=""/><type:DebugRuleElementMatches xmi:id="956" matches="960" 
element="(PERIOD | SPECIAL)" ruleAnchor="false"/><type:DebugEvaluatedCondition 
xmi:id="947" element="NUM" value="true"/><type:DebugRuleElementMatch 
xmi:id="939" sofa="1" begin="35" end="36" time="0" baseCondition="947" c
 onditions=""/><type:DebugRuleElementMatches xmi:id="935" matches="939" 
element="NUM" ruleAnchor="false"/><type:DebugEvaluatedCondition xmi:id="926" 
element="(PERIOD | SPECIAL)" value="true"/><type:DebugRuleElementMatch 
xmi:id="918" sofa="1" begin="34" end="35" time="0" baseCondition="926" 
conditions=""/><type:DebugRuleElementMatches xmi:id="914" matches="918" 
element="(PERIOD | SPECIAL)" ruleAnchor="false"/><type:DebugEvaluatedCondition 
xmi:id="905" element="NUM" value="true"/><type:DebugRuleElementMatch 
xmi:id="897" sofa="1" begin="32" end="34" time="0" baseCondition="905" 
conditions=""/><type:DebugRuleElementMatches xmi:id="893" matches="897" 
element="NUM" ruleAnchor="true"/><type:DebugEvaluatedCondition xmi:id="1015" 
element="ExampleCondition(&quot;1981/02/24&quot;, &quot;yyyy/mm/dd&quot;)" 
value="false" conditions=""/><type:DebugEvaluatedCondition xmi:id="1009" 
element="ExampleCondition(&quot;24.02.1981&quot;, &quot;dd.mm.yyyy&quot;)" 
value="false" conditions=""/><type:D
 ebugEvaluatedCondition xmi:id="1005" element="OR(ExampleCondition, 
ExampleCondition)" value="false" conditions="1009 
1015"/><type:DebugEvaluatedCondition xmi:id="889" element="(NUM (PERIOD | 
SPECIAL) NUM (PERIOD | SPECIAL) NUM){OR(ExampleCondition, ExampleCondition) 
-&gt; MARK(BeforeMe)}" value="true"/><type:DebugRuleElementMatch xmi:id="881" 
sofa="1" begin="32" end="41" time="0" baseCondition="889" conditions="1005" 
elements="893 914 935 956 977"/><type:DebugRuleElementMatches xmi:id="877" 
matches="881" element="(NUM (PERIOD | SPECIAL) NUM (PERIOD | SPECIAL) 
NUM){OR(ExampleCondition, ExampleCondition) -&gt; MARK(BeforeMe)}" 
ruleAnchor="false"/><type:DebugRuleElementMatches xmi:id="827" matches="" 
element="NUM" ruleAnchor="false"/><type:DebugRuleElementMatches xmi:id="821" 
matches="" element="(PERIOD | SPECIAL)" 
ruleAnchor="false"/><type:DebugRuleElementMatches xmi:id="815" matches="" 
element="NUM" ruleAnchor="false"/><type:DebugEvaluatedCondition xmi:id="806" 
element="(PERI
 OD | SPECIAL)" value="false"/><type:DebugRuleElementMatch xmi:id="798" 
sofa="1" begin="0" end="0" time="0" baseCondition="806" 
conditions=""/><type:DebugRuleElementMatches xmi:id="794" matches="798" 
element="(PERIOD | SPECIAL)" ruleAnchor="false"/><type:DebugEvaluatedCondition 
xmi:id="785" element="NUM" value="true"/><type:DebugRuleElementMatch 
xmi:id="777" sofa="1" begin="25" end="27" time="0" baseCondition="785" 
conditions=""/><type:DebugRuleElementMatches xmi:id="773" matches="777" 
element="NUM" ruleAnchor="true"/><type:DebugEvaluatedCondition xmi:id="850" 
element="ExampleCondition(&quot;1981/02/24&quot;, &quot;yyyy/mm/dd&quot;)" 
value="false" conditions=""/><type:DebugEvaluatedCondition xmi:id="844" 
element="ExampleCondition(&quot;24.02.1981&quot;, &quot;dd.mm.yyyy&quot;)" 
value="false" conditions=""/><type:DebugEvaluatedCondition xmi:id="840" 
element="OR(ExampleCondition, ExampleCondition)" value="false" conditions="844 
850"/><type:DebugEvaluatedCondition xmi:id="769" e
 lement="(NUM (PERIOD | SPECIAL) NUM (PERIOD | SPECIAL) 
NUM){OR(ExampleCondition, ExampleCondition) -&gt; MARK(BeforeMe)}" 
value="false"/><type:DebugRuleElementMatch xmi:id="761" sofa="1" begin="25" 
end="27" time="0" baseCondition="769" conditions="840" elements="773 794 815 
821 827"/><type:DebugRuleElementMatches xmi:id="757" matches="761" 
element="(NUM (PERIOD | SPECIAL) NUM (PERIOD | SPECIAL) 
NUM){OR(ExampleCondition, ExampleCondition) -&gt; MARK(BeforeMe)}" 
ruleAnchor="false"/><type:DebugRuleElementMatches xmi:id="703" matches="" 
element="NUM" ruleAnchor="false"/><type:DebugEvaluatedCondition xmi:id="694" 
element="(PERIOD | SPECIAL)" value="false"/><type:DebugRuleElementMatch 
xmi:id="686" sofa="1" begin="0" end="0" time="0" baseCondition="694" 
conditions=""/><type:DebugRuleElementMatches xmi:id="682" matches="686" 
element="(PERIOD | SPECIAL)" ruleAnchor="false"/><type:DebugEvaluatedCondition 
xmi:id="673" element="NUM" value="true"/><type:DebugRuleElementMatch 
xmi:id="665"
  sofa="1" begin="25" end="27" time="0" baseCondition="673" 
conditions=""/><type:DebugRuleElementMatches xmi:id="661" matches="665" 
element="NUM" ruleAnchor="false"/><type:DebugEvaluatedCondition xmi:id="652" 
element="(PERIOD | SPECIAL)" value="true"/><type:DebugRuleElementMatch 
xmi:id="644" sofa="1" begin="24" end="25" time="0" baseCondition="652" 
conditions=""/><type:DebugRuleElementMatches xmi:id="640" matches="644" 
element="(PERIOD | SPECIAL)" ruleAnchor="false"/><type:DebugEvaluatedCondition 
xmi:id="631" element="NUM" value="true"/><type:DebugRuleElementMatch 
xmi:id="623" sofa="1" begin="22" end="24" time="0" baseCondition="631" 
conditions=""/><type:DebugRuleElementMatches xmi:id="619" matches="623" 
element="NUM" ruleAnchor="true"/><type:DebugEvaluatedCondition xmi:id="726" 
element="ExampleCondition(&quot;1981/02/24&quot;, &quot;yyyy/mm/dd&quot;)" 
value="false" conditions=""/><type:DebugEvaluatedCondition xmi:id="720" 
element="ExampleCondition(&quot;24.02.1981&quot;, &qu
 ot;dd.mm.yyyy&quot;)" value="false" 
conditions=""/><type:DebugEvaluatedCondition xmi:id="716" 
element="OR(ExampleCondition, ExampleCondition)" value="false" conditions="720 
726"/><type:DebugEvaluatedCondition xmi:id="615" element="(NUM (PERIOD | 
SPECIAL) NUM (PERIOD | SPECIAL) NUM){OR(ExampleCondition, ExampleCondition) 
-&gt; MARK(BeforeMe)}" value="false"/><type:DebugRuleElementMatch xmi:id="607" 
sofa="1" begin="22" end="27" time="0" baseCondition="615" conditions="716" 
elements="619 640 661 682 703"/><type:DebugRuleElementMatches xmi:id="603" 
matches="607" element="(NUM (PERIOD | SPECIAL) NUM (PERIOD | SPECIAL) 
NUM){OR(ExampleCondition, ExampleCondition) -&gt; MARK(BeforeMe)}" 
ruleAnchor="false"/><type:DebugEvaluatedCondition xmi:id="1354" 
element="Document" value="true"/><type:DebugRuleElementMatch xmi:id="1346" 
sofa="1" begin="0" end="41" time="0" baseCondition="1354" 
conditions=""/><type:DebugRuleElementMatches xmi:id="1342" matches="1346" 
element="Document" ruleAnchor=
 "true"/><type:DebugEvaluatedCondition xmi:id="544" element="NUM" 
value="true"/><type:DebugRuleElementMatch xmi:id="536" sofa="1" begin="25" 
end="27" time="0" baseCondition="544" 
conditions=""/><type:DebugRuleElementMatches xmi:id="532" matches="536" 
element="NUM" ruleAnchor="false"/><type:DebugEvaluatedCondition xmi:id="523" 
element="(PERIOD | SPECIAL)" value="true"/><type:DebugRuleElementMatch 
xmi:id="515" sofa="1" begin="24" end="25" time="0" baseCondition="523" 
conditions=""/><type:DebugRuleElementMatches xmi:id="511" matches="515" 
element="(PERIOD | SPECIAL)" ruleAnchor="false"/><type:DebugEvaluatedCondition 
xmi:id="502" element="NUM" value="true"/><type:DebugRuleElementMatch 
xmi:id="494" sofa="1" begin="22" end="24" time="0" baseCondition="502" 
conditions=""/><type:DebugRuleElementMatches xmi:id="490" matches="494" 
element="NUM" ruleAnchor="false"/><type:DebugEvaluatedCondition xmi:id="481" 
element="(PERIOD | SPECIAL)" value="true"/><type:DebugRuleElementMatch xmi:id="4
 73" sofa="1" begin="21" end="22" time="0" baseCondition="481" 
conditions=""/><type:DebugRuleElementMatches xmi:id="469" matches="473" 
element="(PERIOD | SPECIAL)" ruleAnchor="false"/><type:DebugEvaluatedCondition 
xmi:id="460" element="NUM" value="true"/><type:DebugRuleElementMatch 
xmi:id="452" sofa="1" begin="17" end="21" time="0" baseCondition="460" 
conditions=""/><type:DebugRuleElementMatches xmi:id="448" matches="452" 
element="NUM" ruleAnchor="true"/><type:DebugEvaluatedCondition xmi:id="570" 
element="ExampleCondition(&quot;1981/02/24&quot;, &quot;yyyy/mm/dd&quot;)" 
value="true" conditions=""/><type:DebugEvaluatedCondition xmi:id="564" 
element="ExampleCondition(&quot;24.02.1981&quot;, &quot;dd.mm.yyyy&quot;)" 
value="false" conditions=""/><type:DebugEvaluatedCondition xmi:id="560" 
element="OR(ExampleCondition, ExampleCondition)" value="true" conditions="564 
570"/><type:DebugEvaluatedCondition xmi:id="444" element="(NUM (PERIOD | 
SPECIAL) NUM (PERIOD | SPECIAL) NUM){OR(Exam
 pleCondition, ExampleCondition) -&gt; MARK(BeforeMe)}" 
value="true"/><type:DebugRuleElementMatch xmi:id="436" sofa="1" begin="17" 
end="27" time="0" baseCondition="444" conditions="560" elements="448 469 490 
511 532"/><type:DebugRuleElementMatches xmi:id="432" matches="436" 
element="(NUM (PERIOD | SPECIAL) NUM (PERIOD | SPECIAL) 
NUM){OR(ExampleCondition, ExampleCondition) -&gt; MARK(BeforeMe)}" 
ruleAnchor="false"/><cas:View sofa="1" members="8 13 17 25 33 73 81 21 29 37 77 
41 89 97 45 49 53 61 69 85 93 101 57 65 105 110 115 120 125 130 135 140 145 150 
155 160 165 170 175 180 185 190 195 200 205 210 215 352 424 1334 595 749 869 
1038 1192 401 1387 220 225 230 235 240 245 250 255 260 265 270 275 280 285 290 
295 300 305 310 315 320 325 330 335 356"/></xmi:XMI>
\ No newline at end of file

Modified: 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/script/uima/textmarker/ExampleAction.tm
URL: 
http://svn.apache.org/viewvc/uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/script/uima/textmarker/ExampleAction.tm?rev=1476209&r1=1476208&r2=1476209&view=diff
==============================================================================
--- 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/script/uima/textmarker/ExampleAction.tm
 (original)
+++ 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/script/uima/textmarker/ExampleAction.tm
 Fri Apr 26 14:05:09 2013
@@ -1,7 +1,6 @@
 PACKAGE uima.textmarker;
 
-
-CW{-> ExampleAction(1,2,3,4,5)} SW SW SW PERIOD;
+CW{ -> ExampleAction(1, 2, 3, 4, 5)} SW SW SW PERIOD;
 
 
 

Added: 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/script/uima/textmarker/ExampleCondition.tm
URL: 
http://svn.apache.org/viewvc/uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/script/uima/textmarker/ExampleCondition.tm?rev=1476209&view=auto
==============================================================================
--- 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/script/uima/textmarker/ExampleCondition.tm
 (added)
+++ 
uima/sandbox/textmarker/trunk/example-projects/ExtensionsExample/script/uima/textmarker/ExampleCondition.tm
 Fri Apr 26 14:05:09 2013
@@ -0,0 +1,7 @@
+PACKAGE uima.textmarker;
+
+
+DECLARE BeforeMe;
+
+(NUM (PERIOD | SPECIAL) NUM (PERIOD | SPECIAL) 
NUM){OR(ExampleCondition("24.02.1981", "dd.mm.yyyy"),
+     ExampleCondition("1981/02/24", "yyyy/mm/dd")) -> MARK(BeforeMe)};
\ No newline at end of file


Reply via email to