public class DelegatingDocumentNodeState extends AbstractDocumentNodeState
AbstractDocumentNodeState by extracting
the meta properties which are stored as hidden properties| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_LAST_REV |
static String |
PROP_REVISION |
EXISTScompareAgainstBaseState, equalscheckValidName, compareAgainstBaseState, comparePropertiesAgainstBaseState, count, equals, getBoolean, getLong, getName, getNames, getString, getStrings, hashCode, isValidName, toString, toStringpublic static final String PROP_REVISION
public static final String PROP_LAST_REV
public static org.apache.jackrabbit.oak.spi.state.NodeState wrapIfPossible(org.apache.jackrabbit.oak.spi.state.NodeState delegate, NodeStateDiffer differ)
DelegatingDocumentNodeState if
it has required meta properties otherwise just returns the passed NodeStatedelegate - nodeState to wrappublic static boolean hasMetaProps(org.apache.jackrabbit.oak.spi.state.NodeState delegate)
public static AbstractDocumentNodeState wrap(org.apache.jackrabbit.oak.spi.state.NodeState delegate, NodeStateDiffer differ)
public String getPath()
getPath in class AbstractDocumentNodeStatepublic RevisionVector getLastRevision()
getLastRevision in class AbstractDocumentNodeStatepublic RevisionVector getRootRevision()
getRootRevision in class AbstractDocumentNodeStatepublic boolean isFromExternalChange()
isFromExternalChange in class AbstractDocumentNodeStatepublic AbstractDocumentNodeState withRootRevision(@NotNull @NotNull RevisionVector root, boolean externalChange)
AbstractDocumentNodeStateDocumentNodeState with the
AbstractDocumentNodeState.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 AbstractDocumentNodeState.isFromExternalChange()
flags are equal.withRootRevision in class AbstractDocumentNodeStateroot - the root revision for the copy of this node state.externalChange - if the AbstractDocumentNodeState.isFromExternalChange() flag must be
set on the returned node state.public boolean hasNoChildren()
hasNoChildren in class AbstractDocumentNodeStateprotected NodeStateDiffer getNodeStateDiffer()
getNodeStateDiffer in class AbstractDocumentNodeStatepublic boolean exists()
@NotNull public @NotNull Iterable<? extends org.apache.jackrabbit.oak.api.PropertyState> getProperties()
public boolean hasChildNode(@NotNull
@NotNull String name)
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.state.NodeState getChildNode(@NotNull @NotNull String name) throws IllegalArgumentException
IllegalArgumentException@NotNull public @NotNull Iterable<? extends org.apache.jackrabbit.oak.spi.state.ChildNodeEntry> getChildNodeEntries()
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder()
public org.apache.jackrabbit.oak.api.PropertyState getProperty(@NotNull @NotNull String name)
getProperty in interface org.apache.jackrabbit.oak.spi.state.NodeStategetProperty in class org.apache.jackrabbit.oak.spi.state.AbstractNodeStatepublic long getPropertyCount()
getPropertyCount in interface org.apache.jackrabbit.oak.spi.state.NodeStategetPropertyCount in class org.apache.jackrabbit.oak.spi.state.AbstractNodeStatepublic boolean hasProperty(@NotNull
@NotNull String name)
hasProperty in interface org.apache.jackrabbit.oak.spi.state.NodeStatehasProperty in class org.apache.jackrabbit.oak.spi.state.AbstractNodeStatepublic boolean getBoolean(@NotNull
@NotNull String name)
getBoolean in interface org.apache.jackrabbit.oak.spi.state.NodeStategetBoolean in class org.apache.jackrabbit.oak.spi.state.AbstractNodeStatepublic long getLong(String name)
getLong in interface org.apache.jackrabbit.oak.spi.state.NodeStategetLong in class org.apache.jackrabbit.oak.spi.state.AbstractNodeStatepublic String getString(String name)
getString in interface org.apache.jackrabbit.oak.spi.state.NodeStategetString in class org.apache.jackrabbit.oak.spi.state.AbstractNodeState@NotNull public @NotNull Iterable<String> getStrings(@NotNull @NotNull String name)
getStrings in interface org.apache.jackrabbit.oak.spi.state.NodeStategetStrings in class org.apache.jackrabbit.oak.spi.state.AbstractNodeStatepublic String getName(@NotNull @NotNull String name)
getName in interface org.apache.jackrabbit.oak.spi.state.NodeStategetName in class org.apache.jackrabbit.oak.spi.state.AbstractNodeState@NotNull public @NotNull Iterable<String> getNames(@NotNull @NotNull String name)
getNames in interface org.apache.jackrabbit.oak.spi.state.NodeStategetNames in class org.apache.jackrabbit.oak.spi.state.AbstractNodeStatepublic long getChildNodeCount(long max)
getChildNodeCount in interface org.apache.jackrabbit.oak.spi.state.NodeStategetChildNodeCount in class org.apache.jackrabbit.oak.spi.state.AbstractNodeStatepublic Iterable<String> getChildNodeNames()
getChildNodeNames in interface org.apache.jackrabbit.oak.spi.state.NodeStategetChildNodeNames in class org.apache.jackrabbit.oak.spi.state.AbstractNodeStateCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.