java.lang.Object
org.apache.jena.enhanced.Polymorphic<RDFNode>
org.apache.jena.enhanced.EnhNode
org.apache.jena.rdf.model.impl.StatementTermImpl
- All Implemented Interfaces:
FrontsNode,RDFNode,StatementTerm
An implementation of statement terms (RDf 1.2 triple terms).
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStatementTermImpl(Node n, EnhGraph m) StatementTermImpl(Statement stmt) StatementTermImpl(Statement statement, ModelCom m) -
Method Summary
Modifier and TypeMethodDescriptionIf this node is a Literal, answer that literal; otherwise throw an exception.If this node is a Resource, answer that resource; otherwise throw an exception.If this node is a StatementTerm, answer that statement term; otherwise throw an exception.getModel()Return the model associated with this resource.Return theStatementthat thisStatementTermrepresents.Answer a .equals() version of this node, except that it's in the modelm.visitWith(RDFVisitor rv) Apply the appropriate method of the visitor to this node's content and return the result.Methods inherited from class org.apache.jena.enhanced.EnhNode
as, asNode, canAs, equals, getGraph, hashCode, isAnon, isLiteral, isResource, isStatementTerm, isURIResource, isValid, viewAsMethods inherited from class org.apache.jena.enhanced.Polymorphic
addView, supportsMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.graph.FrontsNode
asNodeMethods inherited from interface org.apache.jena.rdf.model.RDFNode
as, canAs, isAnon, isLiteral, isResource, isStatementTerm, isURIResource, toString
-
Field Details
-
factory
-
rdfNodeFactory
-
-
Constructor Details
-
StatementTermImpl
-
StatementTermImpl
-
StatementTermImpl
-
-
Method Details
-
asResource
Description copied from interface:RDFNodeIf this node is a Resource, answer that resource; otherwise throw an exception.- Specified by:
asResourcein interfaceRDFNode
-
asLiteral
Description copied from interface:RDFNodeIf this node is a Literal, answer that literal; otherwise throw an exception. -
asStatementTerm
Description copied from interface:RDFNodeIf this node is a StatementTerm, answer that statement term; otherwise throw an exception.- Specified by:
asStatementTermin interfaceRDFNode
-
getStatement
Description copied from interface:StatementTermReturn theStatementthat thisStatementTermrepresents.- Specified by:
getStatementin interfaceStatementTerm
-
getModel
Description copied from interface:RDFNodeReturn the model associated with this resource. If the Resource was not created by a Model, the result may be null. -
visitWith
Description copied from interface:RDFNodeApply the appropriate method of the visitor to this node's content and return the result. -
inModel
Description copied from interface:RDFNodeAnswer a .equals() version of this node, except that it's in the modelm.
-