Interface Value

All Superinterfaces:
Serializable
All Known Subinterfaces:
BNode, IRI, Literal, LmdbResource, LmdbValue, MemValue, NativeResource, NativeValue, Resource, Triple
All Known Implementing Classes:
AbstractBNode, AbstractIRI, AbstractLiteral, AbstractTriple, BooleanLiteral, BooleanMemLiteral, CalendarLiteral, CalendarMemLiteral, CorruptIRI, CorruptIRIOrBNode, CorruptLiteral, CorruptUnknownValue, CorruptValue, DecimalLiteral, DecimalMemLiteral, IntegerLiteral, IntegerMemLiteral, InternedIRI, LmdbBNode, LmdbIRI, LmdbLiteral, MemBNode, MemIRI, MemLiteral, MemResource, MemTriple, NativeBNode, NativeIRI, NativeLiteral, NumericLiteral, NumericMemLiteral, SimpleBNode, SimpleIRI, SimpleLiteral, SimpleTriple

public interface Value extends Serializable
The supertype of all RDF model objects (URIs, blank nodes and literals).
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default Value.Type
     
    default boolean
    Check if the object is an instance of the given type.
    default boolean
    Check if the object is an instance of the given type.
    default boolean
    Check if the object is an instance of the given type.
    default boolean
    Check if the object is an instance of the given type.
    default boolean
    Check if the object is an instance of the given type.
    Returns the String-value of a Value object.
  • Method Details

    • isBNode

      default boolean isBNode()
      Check if the object is an instance of the given type. Typically 2x than using instanceof.

      For implementers: This default implementation is overridden in the repsective sub-interface.

      Returns:
      true if instance of BNode
    • isIRI

      default boolean isIRI()
      Check if the object is an instance of the given type. Typically 2x than using instanceof.

      For implementers: This default implementation is overridden in the repsective sub-interface.

      Returns:
      true if instance of IRI
    • isResource

      default boolean isResource()
      Check if the object is an instance of the given type. Typically 2x than using instanceof.

      For implementers: This default implementation is overridden in the repsective sub-interface.

      Returns:
      true if instance of Resource
    • isLiteral

      default boolean isLiteral()
      Check if the object is an instance of the given type. Typically 2x than using instanceof.

      For implementers: This default implementation is overridden in the repsective sub-interface.

      Returns:
      true if instance of Literal
    • isTriple

      default boolean isTriple()
      Check if the object is an instance of the given type. Typically 2x than using instanceof.

      For implementers: This default implementation is overridden in the repsective sub-interface.

      Returns:
      true if instance of Triple
    • getType

      default Value.Type getType()
    • stringValue

      String stringValue()
      Returns the String-value of a Value object. This returns either a Literal's label, a IRI's URI or a BNode's ID.