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

java.lang.Object
  extended by com.hp.hpl.jena.sparql.core.TriplePath

public final class TriplePath
extends Object

Like a triple except it can be a path or a triple. The triple can have a variable predicate. There may be no "path".


Constructor Summary
TriplePath(Node s, Path path, Node o)
           
TriplePath(Triple triple)
           
 
Method Summary
 Triple asTriple()
          Return as a triple when the path is a simple, 1-link, else return null
 boolean equals(Object other)
           
 Node getObject()
           
 Path getPath()
           
 Node getPredicate()
           
 Node getSubject()
           
 int hashCode()
           
 boolean isTriple()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TriplePath

public TriplePath(Node s,
                  Path path,
                  Node o)

TriplePath

public TriplePath(Triple triple)
Method Detail

getSubject

public Node getSubject()

getPath

public Path getPath()

getPredicate

public Node getPredicate()

getObject

public Node getObject()

isTriple

public boolean isTriple()

asTriple

public Triple asTriple()
Return as a triple when the path is a simple, 1-link, else return null


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Licenced under the Apache License, Version 2.0