1 6 7 package com.hp.hpl.jena.graph.query; 8 import com.hp.hpl.jena.graph.*; 9 10 15 16 public class Bound extends Element 17 { 18 22 public Bound( int n ) { super( n ); } 23 24 29 public boolean match( Domain d, Node x ) 30 { return x.sameValueAs(d.get( index ) ); } 31 32 public Node asNodeMatch( Domain d ) 33 { return (Node) d.get( index ); } 34 35 public String toString() 36 { return "<Bound " + index + ">"; } 37 } 38 39 68 | Popular Tags |