1 6 7 package com.hp.hpl.jena.graph.query; 8 import com.hp.hpl.jena.graph.*; 9 10 15 public class Fixed extends Element 16 { 17 private Node value; 18 19 22 public Fixed( Node x ) 23 { this.value = x; } 24 25 31 32 public boolean match( Domain d, Node x ) 33 { return x.sameValueAs(value); } 34 35 40 public Node asNodeMatch( Domain d ) 41 { return value; } 42 43 public String toString() 44 { return "<fixed " + value + ">"; } 45 } 46 47 76 | Popular Tags |