org.apache.clerezza.rdf.core.sparql.query
Class UriRefOrVariable

java.lang.Object
  extended by org.apache.clerezza.rdf.core.sparql.query.ResourceOrVariable
      extended by org.apache.clerezza.rdf.core.sparql.query.UriRefOrVariable

public class UriRefOrVariable
extends ResourceOrVariable

Wraps either a UriRef or a Variable.

Author:
rbn

Constructor Summary
UriRefOrVariable(UriRef resource)
           
UriRefOrVariable(Variable variable)
           
 
Method Summary
 UriRef getResource()
           
 
Methods inherited from class org.apache.clerezza.rdf.core.sparql.query.ResourceOrVariable
equals, getVariable, hashCode, isVariable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UriRefOrVariable

public UriRefOrVariable(Variable variable)

UriRefOrVariable

public UriRefOrVariable(UriRef resource)
Method Detail

getResource

public UriRef getResource()
Overrides:
getResource in class ResourceOrVariable
Returns:
the wrapped Resource if it is a Resource, null otherwise


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.