Class MemStatement

  • All Implemented Interfaces:
    Serializable, Statement

    public class MemStatement
    extends ContextStatement
    A MemStatement is a Statement which contains context information and a flag indicating whether the statement is explicit or inferred.
    See Also:
    Serialized Form
    • Constructor Detail

      • MemStatement

        public MemStatement​(MemResource subject,
                            MemIRI predicate,
                            MemValue object,
                            MemResource context,
                            int sinceSnapshot)
        Creates a new MemStatement with the supplied subject, predicate, object and context and marks it as 'explicit'.
      • MemStatement

        public MemStatement​(MemResource subject,
                            MemIRI predicate,
                            MemValue object,
                            MemResource context,
                            boolean explicit,
                            int sinceSnapshot)
        Creates a new MemStatement with the supplied subject, predicate, object and context. The value of the explicit parameter determines if this statement is marked as 'explicit' or not.
    • Method Detail

      • setSinceSnapshot

        public void setSinceSnapshot​(int snapshot)
      • getSinceSnapshot

        public int getSinceSnapshot()
      • setTillSnapshot

        public void setTillSnapshot​(int snapshot)
      • getTillSnapshot

        public int getTillSnapshot()
      • isInSnapshot

        public boolean isInSnapshot​(int snapshot)
      • setExplicit

        @Deprecated(since="4.0.0",
                    forRemoval=true)
        public void setExplicit​(boolean explicit)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • isExplicit

        public boolean isExplicit()
      • addToComponentLists

        public void addToComponentLists()
        Lets this statement add itself to the appropriate statement lists of its subject, predicate, object and context. The transaction status will be set to new.
      • removeFromComponentLists

        public void removeFromComponentLists()
        Lets this statement remove itself from the appropriate statement lists of its subject, predicate, object and context. The transaction status will be set to null.