You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2007/02/11 01:43:19 UTC

svn commit: r505812 - /incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.cas_multiplier.xml

Author: schor
Date: Sat Feb 10 16:43:18 2007
New Revision: 505812

URL: http://svn.apache.org/viewvc?view=rev&rev=505812
Log:
No Jira - eliminate extra new line around <programlisting>

Modified:
    incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.cas_multiplier.xml

Modified: incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.cas_multiplier.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.cas_multiplier.xml?view=diff&rev=505812&r1=505811&r2=505812
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.cas_multiplier.xml (original)
+++ incubator/uima/uimaj/trunk/uima-docbooks/src/docbook/tutorials_and_users_guides/tug.cas_multiplier.xml Sat Feb 10 16:43:18 2007
@@ -349,8 +349,7 @@
       <literal>&lt;outputsNewCASes&gt;</literal> element to your descriptor as shown here:</para>
     
     
-    <programlisting>
-  &lt;operationalProperties&gt;
+    <programlisting>&lt;operationalProperties&gt;
     &lt;modifiesCas&gt;false&lt;/modifiesCas&gt;
     &lt;multipleDeploymentAllowed&gt;true&lt;/multipleDeploymentAllowed&gt;
     <emphasis role="bold">&lt;outputsNewCASes&gt;true&lt;/outputsNewCASes&gt;</emphasis>
@@ -441,17 +440,14 @@
         aggregate as follows:</para>
       
       
-      <programlisting>
-        &lt;flowController key="FixedFlowController">
+      <programlisting>&lt;flowController key="FixedFlowController">
           &lt;import name="org.apache.uima.flow.FixedFlowController"/>
-        &lt;/flowController>
-      </programlisting>
+        &lt;/flowController>      </programlisting>
       
       <para>The parameter could then be overriden as, for example:</para>
       
       
-      <programlisting>
-        &lt;configurationParameters>
+      <programlisting>&lt;configurationParameters>
           &lt;configurationParameter>
             &lt;name>ActionForIntermediateSegments&lt;/name>
             &lt;type>String&lt;/type>
@@ -472,8 +468,7 @@
              &lt;string>drop&lt;/string>
            &lt;/value>
          &lt;/nameValuePair>
-       &lt;/configurationParameterSettings>
-      </programlisting>
+       &lt;/configurationParameterSettings></programlisting>
       
       <para>This overriding can also be done using the Component Descriptor Editor tool. An example of an Analysis
         Engine that overrides this parameter can be found in
@@ -643,8 +638,7 @@
 additionalParams2.put(Resource.PARAM_UIMA_CONTEXT, childContext2);
 
 AnalysisEngine myAE = UIMAFramework.produceAnalysisEngine(
-        desc2, additionalParams2);      
-      </programlisting>
+        desc2, additionalParams2);</programlisting>
         
       </para>
     </section>
@@ -706,8 +700,7 @@
           "merged CAS":</para>
         
         
-        <programlisting>
-  public void process(JCas aJCas) throws AnalysisEngineProcessException {
+        <programlisting>public void process(JCas aJCas) throws AnalysisEngineProcessException {
     // procure a new CAS if we don't have one already
     if (mMergedCas == null) {
       mMergedCas = getEmptyJCas();
@@ -740,8 +733,7 @@
           copiedIndexedFs.add(fs);
         }
       }
-    }
-      </programlisting>
+    }</programlisting>
         
         <para>The <literal>CasCopier</literal> class is used to copy Feature Structures of certain types
           (specified by a configuration parameter) to the merged CAS. The <literal>CasCopier</literal> does deep
@@ -799,8 +791,7 @@
         <para>These methods are relatively simple:</para>
         
         
-        <programlisting>
-  public boolean hasNext() throws AnalysisEngineProcessException {
+        <programlisting>public boolean hasNext() throws AnalysisEngineProcessException {
     return mReadyToOutput;
   }
 
@@ -812,8 +803,7 @@
     mMergedCas = null;
     mReadyToOutput = false;
     return casToReturn;
-  }
-      </programlisting>
+  }</programlisting>
         <para>When the merged CAS is ready to be output, <literal>hasNext</literal> will return true, and
           <literal>next</literal> will return the merged CAS, taking care to set the
           <literal>mMergedCas</literal> field to