com.hp.hpl.jena.sparql.core
Class Var

java.lang.Object
  extended by com.hp.hpl.jena.graph.Node
      extended by com.hp.hpl.jena.graph.Node_Fluid
          extended by com.hp.hpl.jena.graph.Node_Variable
              extended by com.hp.hpl.jena.sparql.core.Var

public class Var
extends com.hp.hpl.jena.graph.Node_Variable

A SPARQL variable


Nested Class Summary
 
Nested classes/interfaces inherited from class com.hp.hpl.jena.graph.Node_Variable
com.hp.hpl.jena.graph.Node_Variable.VariableName
 
Nested classes/interfaces inherited from class com.hp.hpl.jena.graph.Node
com.hp.hpl.jena.graph.Node.NotLiteral
 
Field Summary
static Var ANON
           
 
Fields inherited from class com.hp.hpl.jena.graph.Node
ANY, NULL
 
Method Summary
static Var alloc(ExprVar nv)
           
static Var alloc(com.hp.hpl.jena.graph.Node_Variable v)
           
static Var alloc(com.hp.hpl.jena.graph.Node v)
           
static Var alloc(String varName)
           
static Var alloc(Var v)
           
 com.hp.hpl.jena.graph.Node asNode()
           
static String canonical(String x)
           
 boolean equals(Object other)
           
 String getVarName()
           
 int hashCode()
           
 boolean isAllocVar()
           
static boolean isAllocVar(com.hp.hpl.jena.graph.Node node)
           
static boolean isAllocVarName(String x)
           
 boolean isAnonVar()
           
static boolean isAnonVar(Var var)
           
 boolean isBlankNodeVar()
           
static boolean isBlankNodeVar(com.hp.hpl.jena.graph.Node node)
           
static boolean isBlankNodeVarName(String x)
           
 boolean isNamedVar()
           
static boolean isNamedVar(com.hp.hpl.jena.graph.Node node)
           
static boolean isNamedVarName(String x)
           
static boolean isVar(com.hp.hpl.jena.graph.Node node)
           
static com.hp.hpl.jena.graph.Node lookup(Binding binding, com.hp.hpl.jena.graph.Node node)
           
static com.hp.hpl.jena.graph.Node lookup(Binding binding, Var var)
           
static List<Var> varList(Collection<String> varNames)
          Convert a collection of variable names to variables
static List<String> varNames(Collection<Var> vars)
          Return a list of String names from a collection of variables
 
Methods inherited from class com.hp.hpl.jena.graph.Node_Variable
getName, isVariable, toString, variable, visitWith
 
Methods inherited from class com.hp.hpl.jena.graph.Node_Fluid
isConcrete
 
Methods inherited from class com.hp.hpl.jena.graph.Node
cache, create, createAnon, createAnon, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createUncachedLiteral, createUncachedLiteral, createURI, createVariable, getBlankNodeId, getBlankNodeLabel, getIndexingValue, getLiteral, getLiteralDatatype, getLiteralDatatypeURI, getLiteralIsXML, getLiteralLanguage, getLiteralLexicalForm, getLiteralValue, getLocalName, getNameSpace, getType, getURI, hasURI, isBlank, isLiteral, isURI, matches, sameValueAs, toString, toString, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ANON

public static Var ANON
Method Detail

alloc

public static Var alloc(String varName)

alloc

public static Var alloc(com.hp.hpl.jena.graph.Node_Variable v)

alloc

public static Var alloc(com.hp.hpl.jena.graph.Node v)

alloc

public static Var alloc(Var v)

alloc

public static Var alloc(ExprVar nv)

lookup

public static com.hp.hpl.jena.graph.Node lookup(Binding binding,
                                                com.hp.hpl.jena.graph.Node node)

lookup

public static com.hp.hpl.jena.graph.Node lookup(Binding binding,
                                                Var var)

asNode

public com.hp.hpl.jena.graph.Node asNode()

getVarName

public String getVarName()

hashCode

public int hashCode()
Overrides:
hashCode in class com.hp.hpl.jena.graph.Node

equals

public boolean equals(Object other)
Overrides:
equals in class com.hp.hpl.jena.graph.Node_Variable

isNamedVar

public boolean isNamedVar()

isBlankNodeVar

public boolean isBlankNodeVar()

isAllocVar

public boolean isAllocVar()

isAnonVar

public boolean isAnonVar()

canonical

public static String canonical(String x)

isVar

public static boolean isVar(com.hp.hpl.jena.graph.Node node)

isNamedVar

public static boolean isNamedVar(com.hp.hpl.jena.graph.Node node)

isNamedVarName

public static boolean isNamedVarName(String x)

isBlankNodeVar

public static boolean isBlankNodeVar(com.hp.hpl.jena.graph.Node node)

isBlankNodeVarName

public static boolean isBlankNodeVarName(String x)

isAllocVar

public static boolean isAllocVar(com.hp.hpl.jena.graph.Node node)

isAllocVarName

public static boolean isAllocVarName(String x)

varList

public static List<Var> varList(Collection<String> varNames)
Convert a collection of variable names to variables


isAnonVar

public static boolean isAnonVar(Var var)

varNames

public static List<String> varNames(Collection<Var> vars)
Return a list of String names from a collection of variables



Licenced under the Apache License, Version 2.0