/[fenfire]/fenfire/org/fenfire/view/buoy/PPLinker.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/buoy/PPLinker.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mudyc, Tue Mar 25 15:58:56 2003 UTC revision 1.2 by mudyc, Wed Mar 26 14:00:25 2003 UTC
# Line 3  Line 3 
3  package org.fenfire.modules.pp;  package org.fenfire.modules.pp;
4  import org.fenfire.view.buoy.*;  import org.fenfire.view.buoy.*;
5  import org.fenfire.util.*;  import org.fenfire.util.*;
6    import org.fenfire.vocab.*;
7  import org.nongnu.libvob.*;  import org.nongnu.libvob.*;
8  import org.nongnu.libvob.buoy.*;  import org.nongnu.libvob.buoy.*;
9  import com.hp.hpl.mesa.rdf.jena.model.*;  import com.hp.hpl.mesa.rdf.jena.model.*;
# Line 16  public static final String rcsid = "$Id$ Line 17  public static final String rcsid = "$Id$
17      private static void pa(String s) { System.out.println("PPLinker:"+s); }      private static void pa(String s) { System.out.println("PPLinker:"+s); }
18    
19      private Model model;      private Model model;
20      private PPVocab PP;      public PPLinker(Model model) {
   
     public PPLinker(Model model, PPVocab voc) {  
21          this.model = model;          this.model = model;
         this.PP = voc;  
22      }      }
23    
24      public void doLinks(RDFNode node, VobScene vs, int cs,      public void doLinks(RDFNode node, VobScene vs, int cs,
# Line 37  public static final String rcsid = "$Id$ Line 35  public static final String rcsid = "$Id$
35          Resource n = (Resource)node;          Resource n = (Resource)node;
36    
37          // Right links!          // Right links!
38          Selector slctr = new SelectorImpl(n, PP.Association, (RDFNode) null);          Selector slctr = new SelectorImpl(n, PP.association, (RDFNode) null);
39          StmtIterator iter = model.listStatements(slctr);          StmtIterator iter = model.listStatements(slctr);
40          Statement stmt = null;          Statement stmt = null;
41    
# Line 49  public static final String rcsid = "$Id$ Line 47  public static final String rcsid = "$Id$
47          }          }
48    
49          // Left links!          // Left links!
50          slctr = new SelectorImpl(null, PP.Association, n);          slctr = new SelectorImpl(null, PP.association, n);
51          iter = model.listStatements(slctr);          iter = model.listStatements(slctr);
52          while (iter.hasNext()) {          while (iter.hasNext()) {
53              stmt = iter.next();              stmt = iter.next();

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26