test_class.declarator: ntNames = ImmutableSet.of(JcrConstants.NT_UNSTRUCTURED, JcrConstants.NT_FOLDER)
test_class.modifier: private final
test_class.original_string: private final Set<String> ntNames = ImmutableSet.of(JcrConstants.NT_UNSTRUCTURED, JcrConstants.NT_FOLDER);
test_class.type: Set<String>
test_class.var_name: ntNames
test_class.declarator: pattern = new NodeTypePattern(ntNames)
test_class.modifier: private final
test_class.original_string: private final NodeTypePattern pattern = new NodeTypePattern(ntNames);
test_class.type: NodeTypePattern
test_class.var_name: pattern
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/restriction/NodeTypePatternTest.java
test_class.identifier: NodeTypePatternTest
test_class.superclass: extends AbstractSecurityTest
test_case.body: @Test
      public void testMatchesItem() throws Exception {
  
          Tree rootTree = root.getTree("/");
          for (String ntName : ntNames) {
              Tree testTree = TreeUtil.addChild(rootTree, "name", ntName);
  
              assertTrue(pattern.matches(testTree, null));
              assertTrue(pattern.matches(testTree, PropertyStates.createProperty("a", Boolean.FALSE)));
              assertTrue(pattern.matches(testTree, PropertyStates.createProperty("f", "anyval")));
  
              testTree.remove();
          }
      }
test_case.class_method_signature: NodeTypePatternTest.testMatchesItem()
test_case.full_signature: @Test public void testMatchesItem()
test_case.identifier: testMatchesItem
test_case.invocations: getTree addChild assertTrue matches assertTrue matches createProperty assertTrue matches createProperty remove
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMatchesItem()
focal_class.declarator: log = LoggerFactory.getLogger(NodeTypePattern.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(NodeTypePattern.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: nodeTypeNames
focal_class.modifier: private final
focal_class.original_string: private final Set<String> nodeTypeNames;
focal_class.type: Set<String>
focal_class.var_name: nodeTypeNames
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/restriction/NodeTypePattern.java
focal_class.identifier: NodeTypePattern
focal_class.interfaces: implements RestrictionPattern
focal_class.class_method_signature: NodeTypePattern.NodeTypePattern(@NotNull Iterable<String> nodeTypeNames)
focal_class.full_signature:   NodeTypePattern(@NotNull Iterable<String> nodeTypeNames)
focal_class.identifier: NodeTypePattern
focal_class.parameters: (@NotNull Iterable<String> nodeTypeNames)
focal_class.signature:  NodeTypePattern(@NotNull Iterable<String> nodeTypeNames)
focal_class.class_method_signature: NodeTypePattern.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: NodeTypePattern.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: NodeTypePattern.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: NodeTypePattern.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: NodeTypePattern.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: NodeTypePattern.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) {
          return nodeTypeNames.contains(TreeUtil.getPrimaryTypeName(tree));
      }
focal_method.class_method_signature: NodeTypePattern.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: contains getPrimaryTypeName
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)