org.openrdf.query.parser
Class ParsedUpdate

java.lang.Object
  extended by org.openrdf.query.parser.ParsedOperation
      extended by org.openrdf.query.parser.ParsedUpdate

public class ParsedUpdate
extends ParsedOperation

A parsed update formulated in the OpenRDF query algebra.

Author:
Jeen Broekstra

Constructor Summary
ParsedUpdate()
          Creates a new update.
ParsedUpdate(Map<String,String> namespaces)
          Creates a new update.
 
Method Summary
 void addUpdateExpr(UpdateExpr updateExpr)
           
 Map<String,String> getNamespaces()
           
 List<UpdateExpr> getUpdateExprs()
           
 String toString()
           
 
Methods inherited from class org.openrdf.query.parser.ParsedOperation
getDataset, getSourceString, setDataset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParsedUpdate

public ParsedUpdate()
Creates a new update. To complete this update, one or more update expressions need to be supplied to it using addUpdateExpr(UpdateExpr).


ParsedUpdate

public ParsedUpdate(Map<String,String> namespaces)
Creates a new update. To complete this update, one or update expressions need to be supplied to it using addUpdateExpr(UpdateExpr).

Parameters:
namespaces - A mapping of namespace prefixes to namespace names representing the namespaces that are used in the update.
Method Detail

getNamespaces

public Map<String,String> getNamespaces()

addUpdateExpr

public void addUpdateExpr(UpdateExpr updateExpr)
Parameters:
updateExpr - The updateExpr to add.

getUpdateExprs

public List<UpdateExpr> getUpdateExprs()
Returns:
Returns the list of update expressions.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2012 Aduna. All Rights Reserved.