test_class.declarator: builder = EMPTY_NODE.builder()
test_class.modifier: private
test_class.original_string: private NodeBuilder builder = EMPTY_NODE.builder();
test_class.type: NodeBuilder
test_class.var_name: builder
test_class.file: oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/secondary/DelegatingDocumentNodeStateTest.java
test_class.identifier: DelegatingDocumentNodeStateTest
test_case.body: @Test
      public void wrapIfPossible() throws Exception{
          assertFalse(DelegatingDocumentNodeState.wrapIfPossible(EMPTY_NODE, NodeStateDiffer.DEFAULT_DIFFER)
                  instanceof AbstractDocumentNodeState);
  
          setMetaProps(builder);
          assertTrue(DelegatingDocumentNodeState.wrapIfPossible(builder.getNodeState(), NodeStateDiffer.DEFAULT_DIFFER) instanceof
                  AbstractDocumentNodeState);
      }
test_case.class_method_signature: DelegatingDocumentNodeStateTest.wrapIfPossible()
test_case.full_signature: @Test public void wrapIfPossible()
test_case.identifier: wrapIfPossible
test_case.invocations: assertFalse wrapIfPossible setMetaProps assertTrue wrapIfPossible getNodeState
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void wrapIfPossible()
focal_class.declarator: PROP_REVISION = ":doc-rev"
focal_class.modifier: public static final
focal_class.original_string: public static final String PROP_REVISION = ":doc-rev";
focal_class.type: String
focal_class.var_name: PROP_REVISION
focal_class.declarator: PROP_LAST_REV = ":doc-lastRev"
focal_class.modifier: public static final
focal_class.original_string: public static final String PROP_LAST_REV = ":doc-lastRev";
focal_class.type: String
focal_class.var_name: PROP_LAST_REV
focal_class.declarator: NOT_META_PROPS = new Predicate<PropertyState>() {
          @Override
          public boolean apply(PropertyState input) {
              return !input.getName().startsWith(":doc-");
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final Predicate<PropertyState> NOT_META_PROPS = new Predicate<PropertyState>() {
          @Override
          public boolean apply(PropertyState input) {
              return !input.getName().startsWith(":doc-");
          }
      };
focal_class.type: Predicate<PropertyState>
focal_class.var_name: NOT_META_PROPS
focal_class.declarator: differ
focal_class.modifier: private final
focal_class.original_string: private final NodeStateDiffer differ;
focal_class.type: NodeStateDiffer
focal_class.var_name: differ
focal_class.declarator: delegate
focal_class.modifier: private final
focal_class.original_string: private final NodeState delegate;
focal_class.type: NodeState
focal_class.var_name: delegate
focal_class.declarator: rootRevision
focal_class.modifier: private final
focal_class.original_string: private final RevisionVector rootRevision;
focal_class.type: RevisionVector
focal_class.var_name: rootRevision
focal_class.declarator: fromExternalChange
focal_class.modifier: private final
focal_class.original_string: private final boolean fromExternalChange;
focal_class.type: boolean
focal_class.var_name: fromExternalChange
focal_class.declarator: path
focal_class.modifier: private final
focal_class.original_string: private final Path path;
focal_class.type: Path
focal_class.var_name: path
focal_class.declarator: lastRevision
focal_class.modifier: private
focal_class.original_string: private RevisionVector lastRevision;
focal_class.type: RevisionVector
focal_class.var_name: lastRevision
focal_class.file: oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/secondary/DelegatingDocumentNodeState.java
focal_class.identifier: DelegatingDocumentNodeState
focal_class.class_method_signature: DelegatingDocumentNodeState.wrapIfPossible(NodeState delegate, NodeStateDiffer differ)
focal_class.full_signature: public static NodeState wrapIfPossible(NodeState delegate, NodeStateDiffer differ)
focal_class.identifier: wrapIfPossible
focal_class.modifiers: public static
focal_class.parameters: (NodeState delegate, NodeStateDiffer differ)
focal_class.return: NodeState
focal_class.signature: NodeState wrapIfPossible(NodeState delegate, NodeStateDiffer differ)
focal_class.class_method_signature: DelegatingDocumentNodeState.hasMetaProps(NodeState delegate)
focal_class.full_signature: public static boolean hasMetaProps(NodeState delegate)
focal_class.identifier: hasMetaProps
focal_class.modifiers: public static
focal_class.parameters: (NodeState delegate)
focal_class.return: boolean
focal_class.signature: boolean hasMetaProps(NodeState delegate)
focal_class.class_method_signature: DelegatingDocumentNodeState.wrap(NodeState delegate, NodeStateDiffer differ)
focal_class.full_signature: public static AbstractDocumentNodeState wrap(NodeState delegate, NodeStateDiffer differ)
focal_class.identifier: wrap
focal_class.modifiers: public static
focal_class.parameters: (NodeState delegate, NodeStateDiffer differ)
focal_class.return: AbstractDocumentNodeState
focal_class.signature: AbstractDocumentNodeState wrap(NodeState delegate, NodeStateDiffer differ)
focal_class.class_method_signature: DelegatingDocumentNodeState.DelegatingDocumentNodeState(NodeState delegate, Path path, RevisionVector rootRevision,
                                         boolean fromExternalChange, NodeStateDiffer differ)
focal_class.full_signature: private  DelegatingDocumentNodeState(NodeState delegate, Path path, RevisionVector rootRevision,
                                         boolean fromExternalChange, NodeStateDiffer differ)
focal_class.identifier: DelegatingDocumentNodeState
focal_class.modifiers: private
focal_class.parameters: (NodeState delegate, Path path, RevisionVector rootRevision,
                                         boolean fromExternalChange, NodeStateDiffer differ)
focal_class.signature:  DelegatingDocumentNodeState(NodeState delegate, Path path, RevisionVector rootRevision,
                                         boolean fromExternalChange, NodeStateDiffer differ)
focal_class.class_method_signature: DelegatingDocumentNodeState.DelegatingDocumentNodeState(DelegatingDocumentNodeState original,
                                          RevisionVector rootRevision, boolean fromExternalChange)
focal_class.full_signature: private  DelegatingDocumentNodeState(DelegatingDocumentNodeState original,
                                          RevisionVector rootRevision, boolean fromExternalChange)
focal_class.identifier: DelegatingDocumentNodeState
focal_class.modifiers: private
focal_class.parameters: (DelegatingDocumentNodeState original,
                                          RevisionVector rootRevision, boolean fromExternalChange)
focal_class.signature:  DelegatingDocumentNodeState(DelegatingDocumentNodeState original,
                                          RevisionVector rootRevision, boolean fromExternalChange)
focal_class.class_method_signature: DelegatingDocumentNodeState.getPath()
focal_class.full_signature: @Override public Path getPath()
focal_class.identifier: getPath
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Path
focal_class.signature: Path getPath()
focal_class.class_method_signature: DelegatingDocumentNodeState.getLastRevision()
focal_class.full_signature: @Override public RevisionVector getLastRevision()
focal_class.identifier: getLastRevision
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: RevisionVector
focal_class.signature: RevisionVector getLastRevision()
focal_class.class_method_signature: DelegatingDocumentNodeState.getRootRevision()
focal_class.full_signature: @Override public RevisionVector getRootRevision()
focal_class.identifier: getRootRevision
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: RevisionVector
focal_class.signature: RevisionVector getRootRevision()
focal_class.class_method_signature: DelegatingDocumentNodeState.isFromExternalChange()
focal_class.full_signature: @Override public boolean isFromExternalChange()
focal_class.identifier: isFromExternalChange
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isFromExternalChange()
focal_class.class_method_signature: DelegatingDocumentNodeState.withRootRevision(@NotNull RevisionVector root, boolean externalChange)
focal_class.full_signature: @Override public AbstractDocumentNodeState withRootRevision(@NotNull RevisionVector root, boolean externalChange)
focal_class.identifier: withRootRevision
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull RevisionVector root, boolean externalChange)
focal_class.return: AbstractDocumentNodeState
focal_class.signature: AbstractDocumentNodeState withRootRevision(@NotNull RevisionVector root, boolean externalChange)
focal_class.class_method_signature: DelegatingDocumentNodeState.hasNoChildren()
focal_class.full_signature: @Override public boolean hasNoChildren()
focal_class.identifier: hasNoChildren
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean hasNoChildren()
focal_class.class_method_signature: DelegatingDocumentNodeState.getNodeStateDiffer()
focal_class.full_signature: @Override protected NodeStateDiffer getNodeStateDiffer()
focal_class.identifier: getNodeStateDiffer
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: NodeStateDiffer
focal_class.signature: NodeStateDiffer getNodeStateDiffer()
focal_class.class_method_signature: DelegatingDocumentNodeState.exists()
focal_class.full_signature: @Override public boolean exists()
focal_class.identifier: exists
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean exists()
focal_class.class_method_signature: DelegatingDocumentNodeState.getProperties()
focal_class.full_signature: @NotNull @Override public Iterable<? extends PropertyState> getProperties()
focal_class.identifier: getProperties
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: ()
focal_class.return: Iterable<? extends PropertyState>
focal_class.signature: Iterable<? extends PropertyState> getProperties()
focal_class.class_method_signature: DelegatingDocumentNodeState.hasChildNode(@NotNull String name)
focal_class.full_signature: @Override public boolean hasChildNode(@NotNull String name)
focal_class.identifier: hasChildNode
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull String name)
focal_class.return: boolean
focal_class.signature: boolean hasChildNode(@NotNull String name)
focal_class.class_method_signature: DelegatingDocumentNodeState.getChildNode(@NotNull String name)
focal_class.full_signature: @NotNull @Override public NodeState getChildNode(@NotNull String name)
focal_class.identifier: getChildNode
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@NotNull String name)
focal_class.return: NodeState
focal_class.signature: NodeState getChildNode(@NotNull String name)
focal_class.class_method_signature: DelegatingDocumentNodeState.getChildNodeEntries()
focal_class.full_signature: @NotNull @Override public Iterable<? extends ChildNodeEntry> getChildNodeEntries()
focal_class.identifier: getChildNodeEntries
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: ()
focal_class.return: Iterable<? extends ChildNodeEntry>
focal_class.signature: Iterable<? extends ChildNodeEntry> getChildNodeEntries()
focal_class.class_method_signature: DelegatingDocumentNodeState.builder()
focal_class.full_signature: @NotNull @Override public NodeBuilder builder()
focal_class.identifier: builder
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: ()
focal_class.return: NodeBuilder
focal_class.signature: NodeBuilder builder()
focal_class.class_method_signature: DelegatingDocumentNodeState.getProperty(@NotNull String name)
focal_class.full_signature: @Override public PropertyState getProperty(@NotNull String name)
focal_class.identifier: getProperty
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull String name)
focal_class.return: PropertyState
focal_class.signature: PropertyState getProperty(@NotNull String name)
focal_class.class_method_signature: DelegatingDocumentNodeState.getPropertyCount()
focal_class.full_signature: @Override public long getPropertyCount()
focal_class.identifier: getPropertyCount
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getPropertyCount()
focal_class.class_method_signature: DelegatingDocumentNodeState.hasProperty(@NotNull String name)
focal_class.full_signature: @Override public boolean hasProperty(@NotNull String name)
focal_class.identifier: hasProperty
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull String name)
focal_class.return: boolean
focal_class.signature: boolean hasProperty(@NotNull String name)
focal_class.class_method_signature: DelegatingDocumentNodeState.getBoolean(@NotNull String name)
focal_class.full_signature: @Override public boolean getBoolean(@NotNull String name)
focal_class.identifier: getBoolean
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull String name)
focal_class.return: boolean
focal_class.signature: boolean getBoolean(@NotNull String name)
focal_class.class_method_signature: DelegatingDocumentNodeState.getLong(String name)
focal_class.full_signature: @Override public long getLong(String name)
focal_class.identifier: getLong
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: long
focal_class.signature: long getLong(String name)
focal_class.class_method_signature: DelegatingDocumentNodeState.getString(String name)
focal_class.full_signature: @Override public String getString(String name)
focal_class.identifier: getString
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: String
focal_class.signature: String getString(String name)
focal_class.class_method_signature: DelegatingDocumentNodeState.getStrings(@NotNull String name)
focal_class.full_signature: @NotNull @Override public Iterable<String> getStrings(@NotNull String name)
focal_class.identifier: getStrings
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@NotNull String name)
focal_class.return: Iterable<String>
focal_class.signature: Iterable<String> getStrings(@NotNull String name)
focal_class.class_method_signature: DelegatingDocumentNodeState.getName(@NotNull String name)
focal_class.full_signature: @Override public String getName(@NotNull String name)
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull String name)
focal_class.return: String
focal_class.signature: String getName(@NotNull String name)
focal_class.class_method_signature: DelegatingDocumentNodeState.getNames(@NotNull String name)
focal_class.full_signature: @NotNull @Override public Iterable<String> getNames(@NotNull String name)
focal_class.identifier: getNames
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@NotNull String name)
focal_class.return: Iterable<String>
focal_class.signature: Iterable<String> getNames(@NotNull String name)
focal_class.class_method_signature: DelegatingDocumentNodeState.getChildNodeCount(long max)
focal_class.full_signature: @Override public long getChildNodeCount(long max)
focal_class.identifier: getChildNodeCount
focal_class.modifiers: @Override public
focal_class.parameters: (long max)
focal_class.return: long
focal_class.signature: long getChildNodeCount(long max)
focal_class.class_method_signature: DelegatingDocumentNodeState.getChildNodeNames()
focal_class.full_signature: @Override public Iterable<String> getChildNodeNames()
focal_class.identifier: getChildNodeNames
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Iterable<String>
focal_class.signature: Iterable<String> getChildNodeNames()
focal_class.class_method_signature: DelegatingDocumentNodeState.decorate(String nodeName, NodeState childNode)
focal_class.full_signature: private NodeState decorate(String nodeName, NodeState childNode)
focal_class.identifier: decorate
focal_class.modifiers: private
focal_class.parameters: (String nodeName, NodeState childNode)
focal_class.return: NodeState
focal_class.signature: NodeState decorate(String nodeName, NodeState childNode)
focal_class.class_method_signature: DelegatingDocumentNodeState.getRequiredProp(String name)
focal_class.full_signature: private String getRequiredProp(String name)
focal_class.identifier: getRequiredProp
focal_class.modifiers: private
focal_class.parameters: (String name)
focal_class.return: String
focal_class.signature: String getRequiredProp(String name)
focal_class.class_method_signature: DelegatingDocumentNodeState.getRequiredProp(NodeState state, String name)
focal_class.full_signature: private static String getRequiredProp(NodeState state, String name)
focal_class.identifier: getRequiredProp
focal_class.modifiers: private static
focal_class.parameters: (NodeState state, String name)
focal_class.return: String
focal_class.signature: String getRequiredProp(NodeState state, String name)
focal_class.superclass: extends AbstractDocumentNodeState
focal_method.body: public static NodeState wrapIfPossible(NodeState delegate, NodeStateDiffer differ) {
          if (hasMetaProps(delegate)) {
              String revVector = getRequiredProp(delegate, PROP_REVISION);
              return new DelegatingDocumentNodeState(delegate, Path.ROOT, RevisionVector.fromString(revVector), false, differ);
          }
          return delegate;
      }
focal_method.class_method_signature: DelegatingDocumentNodeState.wrapIfPossible(NodeState delegate, NodeStateDiffer differ)
focal_method.full_signature: public static NodeState wrapIfPossible(NodeState delegate, NodeStateDiffer differ)
focal_method.identifier: wrapIfPossible
focal_method.invocations: hasMetaProps getRequiredProp fromString
focal_method.modifiers: public static
focal_method.parameters: (NodeState delegate, NodeStateDiffer differ)
focal_method.return: NodeState
focal_method.signature: NodeState wrapIfPossible(NodeState delegate, NodeStateDiffer differ)