Package org.apache.jena.rdf.model
Interface RDFVisitor
-
public interface RDFVisitor
The interface for visiting (ie type-dispatching) an RDF Node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.Object
visitBlank(Resource r, AnonId id)
Method to call when visiting a blank node r with identifier id.java.lang.Object
visitLiteral(Literal l)
Method to call when visiting a literal RDF node l.default java.lang.Object
visitStmt(Resource r, Statement statement)
Method to call when visiting a resource with a statement.java.lang.Object
visitURI(Resource r, java.lang.String uri)
Method to call when visiting a URI node r with the given uri.
-
-
-
Method Detail
-
visitBlank
java.lang.Object visitBlank(Resource r, AnonId id)
Method to call when visiting a blank node r with identifier id.- Parameters:
r
- the blank RDF node being visitedid
- the identifier of that node- Returns:
- value to be returned from the visit
-
visitURI
java.lang.Object visitURI(Resource r, java.lang.String uri)
Method to call when visiting a URI node r with the given uri.- Parameters:
r
- the URI node being visiteduri
- the URI string of that node- Returns:
- value to be returned from the visit
-
visitStmt
default java.lang.Object visitStmt(Resource r, Statement statement)
Method to call when visiting a resource with a statement.- Parameters:
r
- the resource node being visitedstatement
- the statement of that node- Returns:
- value to be returned from the visit
-
visitLiteral
java.lang.Object visitLiteral(Literal l)
Method to call when visiting a literal RDF node l.- Parameters:
l
- the RDF Literal node- Returns:
- a value to be returned from the visit
-
-