org.topbraid.spin.util
Class CommandWrapper
java.lang.Object
org.topbraid.spin.util.CommandWrapper
- Direct Known Subclasses:
- QueryWrapper, UpdateWrapper
public abstract class CommandWrapper
- extends Object
Wraps a (pre-compiled) Jena Query or UpdateRequest with its source SPIN object and
a human-readable string representation.
Also needed to work around the issue of Query.equals/hashCode: Otherwise
multiple distinct template calls will be merged into one in HashMaps.
- Author:
- Holger Knublauch
|
Constructor Summary |
CommandWrapper(com.hp.hpl.jena.rdf.model.Resource source,
String text,
String label,
com.hp.hpl.jena.rdf.model.Statement statement,
boolean thisUnbound)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandWrapper
public CommandWrapper(com.hp.hpl.jena.rdf.model.Resource source,
String text,
String label,
com.hp.hpl.jena.rdf.model.Statement statement,
boolean thisUnbound)
getLabel
public String getLabel()
getSPINCommand
public abstract Command getSPINCommand()
getStatement
public com.hp.hpl.jena.rdf.model.Statement getStatement()
getSource
public com.hp.hpl.jena.rdf.model.Resource getSource()
- Gets the SPIN Query or template call that has created this QueryWrapper.
- Returns:
- the source
getText
public String getText()
isThisUnbound
public boolean isThisUnbound()
Copyright © 2011 TopQuadrant, Inc.. All Rights Reserved.