test_class.declarator: prefixes = ImmutableSet.of(NamespaceRegistry.PREFIX_JCR)
test_class.modifier: private final
test_class.original_string: private final Set<String> prefixes = ImmutableSet.of(NamespaceRegistry.PREFIX_JCR);
test_class.type: Set<String>
test_class.var_name: prefixes
test_class.declarator: pattern = new PrefixPattern(prefixes)
test_class.modifier: private final
test_class.original_string: private final PrefixPattern pattern = new PrefixPattern(prefixes);
test_class.type: PrefixPattern
test_class.var_name: pattern
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/restriction/PrefixPatternTest.java
test_class.identifier: PrefixPatternTest
test_class.superclass: extends AbstractSecurityTest
test_case.body: @Test
      public void testMatchesPath() {
          List<String> notMatching = ImmutableList.of("/", "/a", "/jcr:b", "/d/jcr:e/a", "/a/b/c/d/jcr:b");
          for (String p : notMatching) {
              assertFalse(pattern.matches(p));
          }
      }
test_case.class_method_signature: PrefixPatternTest.testMatchesPath()
test_case.full_signature: @Test public void testMatchesPath()
test_case.identifier: testMatchesPath
test_case.invocations: of assertFalse matches
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMatchesPath()
focal_class.declarator: log = LoggerFactory.getLogger(PrefixPattern.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(PrefixPattern.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: prefixes
focal_class.modifier: private final
focal_class.original_string: private final Set<String> prefixes;
focal_class.type: Set<String>
focal_class.var_name: prefixes
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/restriction/PrefixPattern.java
focal_class.identifier: PrefixPattern
focal_class.interfaces: implements RestrictionPattern
focal_class.class_method_signature: PrefixPattern.PrefixPattern(@NotNull Iterable<String> prefixes)
focal_class.full_signature:   PrefixPattern(@NotNull Iterable<String> prefixes)
focal_class.identifier: PrefixPattern
focal_class.parameters: (@NotNull Iterable<String> prefixes)
focal_class.signature:  PrefixPattern(@NotNull Iterable<String> prefixes)
focal_class.class_method_signature: PrefixPattern.matches(@NotNull Tree tree, @Nullable PropertyState property)
focal_class.full_signature: @Override public boolean matches(@NotNull Tree tree, @Nullable PropertyState property)
focal_class.identifier: matches
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull Tree tree, @Nullable PropertyState property)
focal_class.return: boolean
focal_class.signature: boolean matches(@NotNull Tree tree, @Nullable PropertyState property)
focal_class.class_method_signature: PrefixPattern.matches(@NotNull String path)
focal_class.full_signature: @Override public boolean matches(@NotNull String path)
focal_class.identifier: matches
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull String path)
focal_class.return: boolean
focal_class.signature: boolean matches(@NotNull String path)
focal_class.class_method_signature: PrefixPattern.matches()
focal_class.full_signature: @Override public boolean matches()
focal_class.identifier: matches
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean matches()
focal_class.class_method_signature: PrefixPattern.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: PrefixPattern.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: PrefixPattern.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_method.body: @Override
      public boolean matches(@NotNull Tree tree, @Nullable PropertyState property) {
          String name = (property != null) ? property.getName() : tree.getName();
          String prefix = Text.getNamespacePrefix(name);
          if (!prefix.isEmpty()) {
              for (String p : prefixes) {
                  if (prefix.equals(p)) {
                      return true;
                  }
              }
          }
          return false;
      }
focal_method.class_method_signature: PrefixPattern.matches(@NotNull Tree tree, @Nullable PropertyState property)
focal_method.full_signature: @Override public boolean matches(@NotNull Tree tree, @Nullable PropertyState property)
focal_method.identifier: matches
focal_method.invocations: getName getName getNamespacePrefix isEmpty equals
focal_method.modifiers: @Override public
focal_method.parameters: (@NotNull Tree tree, @Nullable PropertyState property)
focal_method.return: boolean
focal_method.signature: boolean matches(@NotNull Tree tree, @Nullable PropertyState property)