Class AbstractDocumentNodeState
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.state.AbstractNodeState
-
- org.apache.jackrabbit.oak.plugins.document.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 Summary
Constructors Constructor Description AbstractDocumentNodeState()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
compareAgainstBaseState(org.apache.jackrabbit.oak.spi.state.NodeState base, org.apache.jackrabbit.oak.spi.state.NodeStateDiff diff)
boolean
equals(java.lang.Object that)
abstract RevisionVector
getLastRevision()
protected abstract NodeStateDiffer
getNodeStateDiffer()
abstract Path
getPath()
abstract RevisionVector
getRootRevision()
abstract boolean
hasNoChildren()
abstract boolean
isFromExternalChange()
abstract AbstractDocumentNodeState
withRootRevision(@NotNull RevisionVector root, boolean externalChange)
-
Methods inherited from class org.apache.jackrabbit.oak.spi.state.AbstractNodeState
checkValidName, compareAgainstBaseState, comparePropertiesAgainstBaseState, count, equals, getBoolean, getBoolean, getChildNodeCount, getChildNodeNames, getLong, getLong, getName, getName, getNames, getNames, getProperty, getPropertyCount, getString, getString, getStrings, getStrings, hashCode, hasProperty, isValidName, toString, toString
-
-
-
-
Method Detail
-
getPath
public abstract Path getPath()
-
getLastRevision
public abstract RevisionVector getLastRevision()
-
getRootRevision
public abstract RevisionVector getRootRevision()
-
isFromExternalChange
public abstract boolean isFromExternalChange()
-
withRootRevision
public abstract AbstractDocumentNodeState withRootRevision(@NotNull @NotNull RevisionVector root, boolean externalChange)
Creates a copy of thisDocumentNodeState
with thegetRootRevision()
set to the givenroot
revision. This method returnsthis
instance if the givenroot
revision is the same as the one in this instance and theisFromExternalChange()
flags are equal.- Parameters:
root
- the root revision for the copy of this node state.externalChange
- if theisFromExternalChange()
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(java.lang.Object that)
- Overrides:
equals
in classorg.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 interfaceorg.apache.jackrabbit.oak.spi.state.NodeState
- Overrides:
compareAgainstBaseState
in classorg.apache.jackrabbit.oak.spi.state.AbstractNodeState
-
-