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/01/02 23:45:01 UTC

svn commit: r491954 - /incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/DebugFSLogicalStructure.java

Author: schor
Date: Tue Jan  2 14:45:01 2007
New Revision: 491954

URL: http://svn.apache.org/viewvc?view=rev&rev=491954
Log:
UIMA-120 Make other views field of Cas / Jcas logical structure
show instances of ViewInfo; this has the wanted toString method
that shows the SofaID associated with the CAS.

Modified:
    incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/DebugFSLogicalStructure.java

Modified: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/DebugFSLogicalStructure.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/DebugFSLogicalStructure.java?view=diff&rev=491954&r1=491953&r2=491954
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/DebugFSLogicalStructure.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/DebugFSLogicalStructure.java Tue Jan  2 14:45:01 2007
@@ -414,16 +414,16 @@
 
   }
 
-  public static CAS[] getOtherViews(CAS cas) {
+  public static ViewInfo[] getOtherViews(CAS cas) {
     Iterator sofaIt = cas.getSofaIterator();
     ArrayList r = new ArrayList();
     while (sofaIt.hasNext()) {
       SofaFS item = (SofaFS) sofaIt.next();
       CAS oCas = cas.getView(item);
       if (oCas != cas)
-        r.add(oCas);
+        r.add(new ViewInfo(oCas));
     }
-    return (CAS[]) r.toArray(new CAS[r.size()]);
+    return (ViewInfo[]) r.toArray(new ViewInfo[r.size()]);
   }
 
   // public static DebugNameValuePair [] getDebugLogicalStructure_JCas(JCas jcas) {