Interface GonElement<K,V>

All Known Subinterfaces:
GonArray<K,V>, GonLiteral<K,V>, GonObject<K,V>
All Known Implementing Classes:
GonArrayImpl, GonElementBase, GonLiteralImpl, GonNull, GonObjectImpl

public interface GonElement<K,V>
A data model for RDF tree structures akin to gson's JsonElement.
  • Method Details

    • isArray

      default boolean isArray()
    • getAsArray

      default GonArray<K,V> getAsArray()
    • isObject

      default boolean isObject()
    • getAsObject

      default GonObject<K,V> getAsObject()
    • isLiteral

      default boolean isLiteral()
    • getAsLiteral

      default GonLiteral<K,V> getAsLiteral()
    • isNull

      default boolean isNull()
    • asNull

      default GonNull<K,V> asNull()
    • accept

      <T> T accept(GonElementVisitor<K,V,T> visitor)
    • getParent

      ParentLink<K,V> getParent()
    • unlinkFromParent

      default void unlinkFromParent()
    • getRoot

      default GonElement<K,V> getRoot()