Class AbstractDocumentNodeState

  • All Implemented Interfaces:
    org.apache.jackrabbit.oak.spi.state.NodeState
    Direct Known Subclasses:
    DelegatingDocumentNodeState, DocumentNodeState

    public abstract class AbstractDocumentNodeState
    extends org.apache.jackrabbit.oak.spi.state.AbstractNodeState
    • Constructor Detail

      • AbstractDocumentNodeState

        public AbstractDocumentNodeState()
    • Method Detail

      • getPath

        public abstract Path getPath()
      • isFromExternalChange

        public abstract boolean isFromExternalChange()
      • withRootRevision

        public abstract AbstractDocumentNodeState withRootRevision​(@NotNull
                                                                   @NotNull RevisionVector root,
                                                                   boolean externalChange)
        Creates a copy of this DocumentNodeState with the getRootRevision() set to the given root revision. This method returns this instance if the given root revision is the same as the one in this instance and the isFromExternalChange() flags are equal.
        Parameters:
        root - the root revision for the copy of this node state.
        externalChange - if the isFromExternalChange() flag must be set on the returned node state.
        Returns:
        a copy of this node state with the given root revision and external change flag.
      • hasNoChildren

        public abstract boolean hasNoChildren()
      • getNodeStateDiffer

        protected abstract NodeStateDiffer getNodeStateDiffer()
      • equals

        public boolean equals​(Object that)
        Overrides:
        equals in class org.apache.jackrabbit.oak.spi.state.AbstractNodeState
      • compareAgainstBaseState

        public boolean compareAgainstBaseState​(org.apache.jackrabbit.oak.spi.state.NodeState base,
                                               org.apache.jackrabbit.oak.spi.state.NodeStateDiff diff)
        Specified by:
        compareAgainstBaseState in interface org.apache.jackrabbit.oak.spi.state.NodeState
        Overrides:
        compareAgainstBaseState in class org.apache.jackrabbit.oak.spi.state.AbstractNodeState