test_class.declarator: root = INITIAL_CONTENT
test_class.modifier: private
test_class.original_string: private NodeState root = INITIAL_CONTENT;
test_class.type: NodeState
test_class.var_name: root
test_class.declarator: builder = root.builder()
test_class.modifier: private
test_class.original_string: private NodeBuilder builder = root.builder();
test_class.type: NodeBuilder
test_class.var_name: builder
test_class.file: oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/NodeStateFacetsConfigTest.java
test_class.identifier: NodeStateFacetsConfigTest
test_case.body: @Test
      public void testMultivaluedDimConfig() throws Exception {
          NodeStateFacetsConfig nodeStateFacetsConfig = new NodeStateFacetsConfig(builder);
          String dimension = "foo";
          nodeStateFacetsConfig.setMultiValued(dimension, true);
          FacetsConfig.DimConfig dimConfig = nodeStateFacetsConfig.getDimConfig(dimension);
          assertNotNull(dimConfig);
          assertTrue(dimConfig.multiValued);
  
          NodeStateFacetsConfig nodeStateFacetsConfig2 = new NodeStateFacetsConfig(builder);
          FacetsConfig.DimConfig dimConfig2 = nodeStateFacetsConfig2.getDimConfig(dimension);
          assertNotNull(dimConfig2);
          assertTrue(dimConfig2.multiValued);
      }
test_case.class_method_signature: NodeStateFacetsConfigTest.testMultivaluedDimConfig()
test_case.full_signature: @Test public void testMultivaluedDimConfig()
test_case.identifier: testMultivaluedDimConfig
test_case.invocations: setMultiValued getDimConfig assertNotNull assertTrue getDimConfig assertNotNull assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMultivaluedDimConfig()
focal_class.declarator: MULTIVALUED = "multivalued"
focal_class.modifier: private static final
focal_class.original_string: private static final String MULTIVALUED = "multivalued";
focal_class.type: String
focal_class.var_name: MULTIVALUED
focal_class.declarator: nodeBuilder
focal_class.modifier: private final
focal_class.original_string: private final NodeBuilder nodeBuilder;
focal_class.type: NodeBuilder
focal_class.var_name: nodeBuilder
focal_class.file: oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/NodeStateFacetsConfig.java
focal_class.identifier: NodeStateFacetsConfig
focal_class.class_method_signature: NodeStateFacetsConfig.NodeStateFacetsConfig(NodeBuilder nodeBuilder)
focal_class.full_signature:   NodeStateFacetsConfig(NodeBuilder nodeBuilder)
focal_class.identifier: NodeStateFacetsConfig
focal_class.parameters: (NodeBuilder nodeBuilder)
focal_class.signature:  NodeStateFacetsConfig(NodeBuilder nodeBuilder)
focal_class.class_method_signature: NodeStateFacetsConfig.readMVFacets(NodeBuilder current, String prefix)
focal_class.full_signature: private void readMVFacets(NodeBuilder current, String prefix)
focal_class.identifier: readMVFacets
focal_class.modifiers: private
focal_class.parameters: (NodeBuilder current, String prefix)
focal_class.return: void
focal_class.signature: void readMVFacets(NodeBuilder current, String prefix)
focal_class.class_method_signature: NodeStateFacetsConfig.setMultiValued(String dimName, boolean v)
focal_class.full_signature: @Override public synchronized void setMultiValued(String dimName, boolean v)
focal_class.identifier: setMultiValued
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (String dimName, boolean v)
focal_class.return: void
focal_class.signature: void setMultiValued(String dimName, boolean v)
focal_class.superclass: extends FacetsConfig
focal_method.body: @Override
      public synchronized void setMultiValued(String dimName, boolean v) {
          super.setMultiValued(dimName, v);
          if (v) {
              NodeBuilder current = this.nodeBuilder;
              for (String p : PathUtils.elements(dimName)) {
                  NodeBuilder child = current.child(p);
                  if (!child.hasProperty(JcrConstants.JCR_PRIMARYTYPE)) {
                      child.setProperty(JcrConstants.JCR_PRIMARYTYPE, JcrConstants.NT_UNSTRUCTURED, Type.NAME);
                  }
                  child.setProperty(MULTIVALUED, true);
                  current = child;
              }
          }
      }
focal_method.class_method_signature: NodeStateFacetsConfig.setMultiValued(String dimName, boolean v)
focal_method.full_signature: @Override public synchronized void setMultiValued(String dimName, boolean v)
focal_method.identifier: setMultiValued
focal_method.invocations: setMultiValued elements child hasProperty setProperty setProperty
focal_method.modifiers: @Override public synchronized
focal_method.parameters: (String dimName, boolean v)
focal_method.return: void
focal_method.signature: void setMultiValued(String dimName, boolean v)