Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright (c) 2009 Mysema Ltd.
   * All rights reserved.
   * 
   */
  package com.mysema.rdfbean.sesame.query;
  
  import java.util.Locale;
  
 import  org.openrdf.model.Value;
 import  org.openrdf.model.ValueFactory;
 import  org.openrdf.query.algebra.TupleExpr;
 import  org.openrdf.query.algebra.ValueExpr;
 import  org.openrdf.query.algebra.Var;
 import  org.openrdf.query.algebra.StatementPattern.Scope;
 
TransformerContext provides a limited view of SesameQuery methods to OperationTransformer instances

Author(s):
tiwe
Version:
$Id$
 
 public interface TransformerContext {
    
    
Create a new Variable
 
     Var createVar();
            
    
Get the Locale
 
     Locale getLocale();

    
Get the mapped path for the given path
 
     MappedPath getMappedPath(Path<?> parent);

    
Get the pattern scope
 
     Scope getPatternScope();

    
Get the resource for the given expression
 
     ID getResourceForLID(Expr<?> arg);

    
Get the ValueFactory
 
     ValueFactory getValueFactory();

    

Returns:
 
     boolean inNegation();

    

Returns:
 
     boolean inOptionalPath();

    

Parameters:
path
Returns:
 
     boolean isRegistered(Path<?> path);

    

Parameters:
builder
s
p
o
 
     void match(JoinBuilder builder, Var sUID p, Var o);

    

Parameters:
s
p
o
 
     void match(Var sUID p, Var o);

    

Parameters:
otherPath
var
 
     void register(Path<?> otherPath, Var var);

    
Transform the given SubQuery to a TupleExpr

Parameters:
arg0
Returns:
    TupleExpr toTuples(SubQuery arg0);

    
Transform the given Expr to a ValueExpr

Parameters:
expr
Returns:
    ValueExpr toValue(Expr<?> expr);

    
Transform the given ID to a Value

Parameters:
id
Returns:
    Value toValue(ID id);

    
Transform the given Constant to a Var

Parameters:
arg1
Returns:
    Var toVar(Constant<?> arg1);

    
Transform the given Path to a Var

Parameters:
path
Returns:
    Var toVar(Path<?> path);

    
Transform the given UID to a Var

Parameters:
id
Returns:
    Var toVar(UID id);

    
Transform the given Value to a Var

Parameters:
value
Returns:
    Var toVar(Value value);

    
Create a new JoinBuilder

Returns:
    
New to GrepCode? Check out our FAQ X