1 6 7 package com.hp.hpl.jena.graph.compose; 8 9 import com.hp.hpl.jena.graph.*; 10 11 16 17 public abstract class Dyadic extends CompositionBase 18 { 19 protected Graph L; 20 protected Graph R; 21 22 27 public Dyadic( Graph L, Graph R ) 28 { 29 this.L = L; 30 this.R = R; 31 getPrefixMapping() 32 .setNsPrefixes( L.getPrefixMapping() ) 33 .setNsPrefixes( R.getPrefixMapping() ) 34 ; 35 } 36 37 public void close() 38 { 39 L.close(); 40 R.close(); 41 } 42 43 46 public boolean dependsOn( Graph other ) 47 { return other == this || L.dependsOn( other ) || R.dependsOn( other ); } 48 49 public Union union( Graph X ) 50 { return new Union( this, X ); } 51 52 55 public Object getL() 56 { return L; } 57 58 61 public Object getR() 62 { return R; } 63 64 } 65 66 95 | Popular Tags |