Class CDTValue

java.lang.Object
org.apache.jena.cdt.CDTValue

public abstract class CDTValue extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.apache.jena.graph.Node
    Returns this object as an RDF term (i.e., an IRI, a literal, or a blank node), assuming it is one.
    boolean
    equals(Object other)
     
    int
     
    boolean
    Returns true if this object is an RDF term (i.e., an IRI, a literal, or a blank node).
    boolean
    Returns true if this is a null value (in which case isNode() must return false).
    boolean
    sameAs(Object other)
     
    final boolean
    sameAs(CDTValue otherValue)
     
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CDTValue

      public CDTValue()
  • Method Details

    • isNull

      public boolean isNull()
      Returns true if this is a null value (in which case isNode() must return false).
    • isNode

      public boolean isNode()
      Returns true if this object is an RDF term (i.e., an IRI, a literal, or a blank node). In that case, asNode() can be used to get a corresponding Node representation of this RDF term.
    • asNode

      public org.apache.jena.graph.Node asNode()
      Returns this object as an RDF term (i.e., an IRI, a literal, or a blank node), assuming it is one. If it is not, then an UnsupportedOperationException is thrown.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public boolean sameAs(Object other) throws ExprEvalException
      Throws:
      ExprEvalException
    • sameAs

      public final boolean sameAs(CDTValue otherValue) throws ExprEvalException
      Throws:
      ExprEvalException
    • asLexicalForm

      public String asLexicalForm()