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 booleancompareAgainstBaseState(org.apache.jackrabbit.oak.spi.state.NodeState base, org.apache.jackrabbit.oak.spi.state.NodeStateDiff diff)booleanequals(java.lang.Object that)abstract RevisionVectorgetLastRevision()protected abstract NodeStateDiffergetNodeStateDiffer()abstract PathgetPath()abstract RevisionVectorgetRootRevision()abstract booleanhasNoChildren()abstract booleanisFromExternalChange()abstract AbstractDocumentNodeStatewithRootRevision(@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 thisDocumentNodeStatewith thegetRootRevision()set to the givenrootrevision. This method returnsthisinstance if the givenrootrevision 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:
equalsin 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:
compareAgainstBaseStatein interfaceorg.apache.jackrabbit.oak.spi.state.NodeState- Overrides:
compareAgainstBaseStatein classorg.apache.jackrabbit.oak.spi.state.AbstractNodeState
-
-