1 5 6 7 8 package com.hp.hpl.jena.rdql.parser; 9 import com.hp.hpl.jena.rdql.QueryException; 10 11 public class Q_URL extends ParsedLiteral { 12 13 String urlString ; 14 15 Q_URL(int id) { super(id); } 16 17 Q_URL(RDQLParser p, int id) { super(p, id); } 18 19 void set(String s) 20 { 21 urlString = s ; 22 super._setURI(s); 23 } 24 25 public void jjtClose() 26 { 27 int n = jjtGetNumChildren() ; 28 if ( n != 1 ) 29 throw new QueryException("Q_URL: Wrong number of children: "+n) ; 30 Q_URI uri = (Q_URI)jjtGetChild(0) ; 31 set(uri.getString()) ; 32 } 33 34 public String toString() 35 { 36 return "url:"+urlString ; 37 } 38 } 39 40 66 | Popular Tags |