test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/ValuePatternTest.java
test_class.identifier: ValuePatternTest
test_case.body: @Test
      public void getStringsState() {
          NodeBuilder b = new MemoryNodeBuilder(EmptyNodeState.EMPTY_NODE);
          assertNull(ValuePattern.getStrings(b.getNodeState(), "x"));
          
          b.setProperty("x", "");
          assertEquals("[]", ValuePattern.getStrings(b.getNodeState(), "x").toString());
          
          b.setProperty("x", "test");
          assertEquals("[test]", ValuePattern.getStrings(b.getNodeState(), "x").toString());
          
          PropertyState ps = PropertyStates.createProperty(
                  "x",
                  Arrays.asList("hello"),
                  Type.STRINGS);
          b.setProperty(ps);
          assertEquals("[hello]", ValuePattern.getStrings(b.getNodeState(), "x").toString());
          
          ps = PropertyStates.createProperty(
                  "x",
                  Arrays.asList(),
                  Type.STRINGS);
          b.setProperty(ps);
          assertEquals("[]", ValuePattern.getStrings(b.getNodeState(), "x").toString());
  
          ps = PropertyStates.createProperty(
                  "x",
                  Arrays.asList("a", "b"),
                  Type.STRINGS);
          b.setProperty(ps);
          assertEquals("[a, b]", ValuePattern.getStrings(b.getNodeState(), "x").toString());
      }
test_case.class_method_signature: ValuePatternTest.getStringsState()
test_case.full_signature: @Test public void getStringsState()
test_case.identifier: getStringsState
test_case.invocations: assertNull getStrings getNodeState setProperty assertEquals toString getStrings getNodeState setProperty assertEquals toString getStrings getNodeState createProperty asList setProperty assertEquals toString getStrings getNodeState createProperty asList setProperty assertEquals toString getStrings getNodeState createProperty asList setProperty assertEquals toString getStrings getNodeState
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getStringsState()
focal_class.declarator: MATCH_ALL = new ValuePattern()
focal_class.modifier: public final static
focal_class.original_string: public final static ValuePattern MATCH_ALL = new ValuePattern();
focal_class.type: ValuePattern
focal_class.var_name: MATCH_ALL
focal_class.declarator: pattern
focal_class.modifier: private final
focal_class.original_string: private final Pattern pattern;
focal_class.type: Pattern
focal_class.var_name: pattern
focal_class.declarator: includePrefixes
focal_class.modifier: private final
focal_class.original_string: private final Iterable<String> includePrefixes;
focal_class.type: Iterable<String>
focal_class.var_name: includePrefixes
focal_class.declarator: excludePrefixes
focal_class.modifier: private final
focal_class.original_string: private final Iterable<String> excludePrefixes;
focal_class.type: Iterable<String>
focal_class.var_name: excludePrefixes
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/ValuePattern.java
focal_class.identifier: ValuePattern
focal_class.class_method_signature: ValuePattern.ValuePattern(NodeBuilder node)
focal_class.full_signature: public  ValuePattern(NodeBuilder node)
focal_class.identifier: ValuePattern
focal_class.modifiers: public
focal_class.parameters: (NodeBuilder node)
focal_class.signature:  ValuePattern(NodeBuilder node)
focal_class.class_method_signature: ValuePattern.ValuePattern(NodeState node)
focal_class.full_signature: public  ValuePattern(NodeState node)
focal_class.identifier: ValuePattern
focal_class.modifiers: public
focal_class.parameters: (NodeState node)
focal_class.signature:  ValuePattern(NodeState node)
focal_class.class_method_signature: ValuePattern.ValuePattern()
focal_class.full_signature: public  ValuePattern()
focal_class.identifier: ValuePattern
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ValuePattern()
focal_class.class_method_signature: ValuePattern.ValuePattern(String pattern, 
              Iterable<String> includePrefixes, Iterable<String> excludePrefixes)
focal_class.full_signature: public  ValuePattern(String pattern, 
              Iterable<String> includePrefixes, Iterable<String> excludePrefixes)
focal_class.identifier: ValuePattern
focal_class.modifiers: public
focal_class.parameters: (String pattern, 
              Iterable<String> includePrefixes, Iterable<String> excludePrefixes)
focal_class.signature:  ValuePattern(String pattern, 
              Iterable<String> includePrefixes, Iterable<String> excludePrefixes)
focal_class.class_method_signature: ValuePattern.matches(String v)
focal_class.full_signature: public boolean matches(String v)
focal_class.identifier: matches
focal_class.modifiers: public
focal_class.parameters: (String v)
focal_class.return: boolean
focal_class.signature: boolean matches(String v)
focal_class.class_method_signature: ValuePattern.matchesAll()
focal_class.full_signature: public boolean matchesAll()
focal_class.identifier: matchesAll
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean matchesAll()
focal_class.class_method_signature: ValuePattern.getStrings(NodeBuilder node, String propertyName)
focal_class.full_signature: public static Iterable<String> getStrings(NodeBuilder node, String propertyName)
focal_class.identifier: getStrings
focal_class.modifiers: public static
focal_class.parameters: (NodeBuilder node, String propertyName)
focal_class.return: Iterable<String>
focal_class.signature: Iterable<String> getStrings(NodeBuilder node, String propertyName)
focal_class.class_method_signature: ValuePattern.getStrings(NodeState node, String propertyName)
focal_class.full_signature: public static Iterable<String> getStrings(NodeState node, String propertyName)
focal_class.identifier: getStrings
focal_class.modifiers: public static
focal_class.parameters: (NodeState node, String propertyName)
focal_class.return: Iterable<String>
focal_class.signature: Iterable<String> getStrings(NodeState node, String propertyName)
focal_class.class_method_signature: ValuePattern.matchesAll(Set<String> values)
focal_class.full_signature: public boolean matchesAll(Set<String> values)
focal_class.identifier: matchesAll
focal_class.modifiers: public
focal_class.parameters: (Set<String> values)
focal_class.return: boolean
focal_class.signature: boolean matchesAll(Set<String> values)
focal_class.class_method_signature: ValuePattern.matchesPrefix(String prefix)
focal_class.full_signature: public boolean matchesPrefix(String prefix)
focal_class.identifier: matchesPrefix
focal_class.modifiers: public
focal_class.parameters: (String prefix)
focal_class.return: boolean
focal_class.signature: boolean matchesPrefix(String prefix)
focal_method.body: public static Iterable<String> getStrings(NodeBuilder node, String propertyName) {
          if (!node.hasProperty(propertyName)) {
              return null;
          }
          PropertyState s = node.getProperty(propertyName);
          if (s.isArray()) {
              return node.getProperty(propertyName).getValue(Type.STRINGS);
          }
          return Collections.singleton(node.getString(propertyName));
      }
focal_method.class_method_signature: ValuePattern.getStrings(NodeBuilder node, String propertyName)
focal_method.full_signature: public static Iterable<String> getStrings(NodeBuilder node, String propertyName)
focal_method.identifier: getStrings
focal_method.invocations: hasProperty getProperty isArray getValue getProperty singleton getString
focal_method.modifiers: public static
focal_method.parameters: (NodeBuilder node, String propertyName)
focal_method.return: Iterable<String>
focal_method.signature: Iterable<String> getStrings(NodeBuilder node, String propertyName)