1 6 package com.hp.hpl.jena.rdf.model; 7 8 import com.hp.hpl.jena.graph.Triple; 9 import com.hp.hpl.jena.graph.TripleBoundary; 10 11 17 public abstract class StatementBoundaryBase implements StatementBoundary 18 { 19 24 public boolean stopAt( Statement s ) 25 { return !continueWith( s ); } 26 27 32 public boolean continueWith( Statement s ) 33 { return !stopAt( s ); } 34 35 38 public final TripleBoundary asTripleBoundary( Model m ) 39 { return convert( m, this ); } 40 41 44 public static TripleBoundary convert( final Model s, final StatementBoundary b ) 45 { 46 return new TripleBoundary() 47 { public boolean stopAt( Triple t ) { return b.stopAt( s.asStatement( t ) ); } }; 48 } 49 } 50 51 | Popular Tags |