test_class.declarator: UUID_Y = UUIDUtils.generateUUID()
test_class.modifier: private static final
test_class.original_string: private static final String UUID_Y = UUIDUtils.generateUUID();
test_class.type: String
test_class.var_name: UUID_Y
test_class.declarator: UUID_Z1 = UUIDUtils.generateUUID()
test_class.modifier: private static final
test_class.original_string: private static final String UUID_Z1 = UUIDUtils.generateUUID();
test_class.type: String
test_class.var_name: UUID_Z1
test_class.declarator: ID_ROOT = "/"
test_class.modifier: public static final
test_class.original_string: public static final String ID_ROOT = "/";
test_class.type: String
test_class.var_name: ID_ROOT
test_class.declarator: ID_X1 = "/x/x1"
test_class.modifier: public static final
test_class.original_string: public static final String ID_X1 = "/x/x1";
test_class.type: String
test_class.var_name: ID_X1
test_class.declarator: ID_Y1 = UUID_Y + "/y1"
test_class.modifier: public static final
test_class.original_string: public static final String ID_Y1 = UUID_Y + "/y1";
test_class.type: String
test_class.var_name: ID_Y1
test_class.declarator: ID_Z1 = UUID_Z1
test_class.modifier: public static final
test_class.original_string: public static final String ID_Z1 = UUID_Z1;
test_class.type: String
test_class.var_name: ID_Z1
test_class.declarator: PATH_X1 = "/x/x1"
test_class.modifier: public static final
test_class.original_string: public static final String PATH_X1 = "/x/x1";
test_class.type: String
test_class.var_name: PATH_X1
test_class.declarator: PATH_Y1 = "/y/y1"
test_class.modifier: public static final
test_class.original_string: public static final String PATH_Y1 = "/y/y1";
test_class.type: String
test_class.var_name: PATH_Y1
test_class.declarator: PATH_Z1 = "/z/z1"
test_class.modifier: public static final
test_class.original_string: public static final String PATH_Z1 = "/z/z1";
test_class.type: String
test_class.var_name: PATH_Z1
test_class.declarator: ID_INVALID = "invalid"
test_class.modifier: public static final
test_class.original_string: public static final String ID_INVALID = "invalid";
test_class.type: String
test_class.var_name: ID_INVALID
test_class.declarator: ID_NON_EXISTING = UUIDUtils.generateUUID()
test_class.modifier: public static final
test_class.original_string: public static final String ID_NON_EXISTING = UUIDUtils.generateUUID();
test_class.type: String
test_class.var_name: ID_NON_EXISTING
test_class.declarator: identifierManager
test_class.modifier: private
test_class.original_string: private IdentifierManager identifierManager;
test_class.type: IdentifierManager
test_class.var_name: identifierManager
test_class.declarator: root
test_class.modifier: private
test_class.original_string: private Root root;
test_class.type: Root
test_class.var_name: root
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/identifier/IdentifierManagerTest.java
test_class.identifier: IdentifierManagerTest
test_case.body: @Test
      public void getPathTest() {
          assertEquals("/", identifierManager.getPath(ID_ROOT));
          assertEquals(PATH_X1, identifierManager.getPath(ID_X1));
          assertEquals(PATH_Y1, identifierManager.getPath(ID_Y1));
          assertEquals(PATH_Z1, identifierManager.getPath(ID_Z1));
          assertNull(identifierManager.getPath(ID_NON_EXISTING));
  
          try {
              identifierManager.getPath(ID_INVALID);
              fail("Expected IllegalArgumentException");
          }
          catch (IllegalArgumentException expected) { }
      }
test_case.class_method_signature: IdentifierManagerTest.getPathTest()
test_case.full_signature: @Test public void getPathTest()
test_case.identifier: getPathTest
test_case.invocations: assertEquals getPath assertEquals getPath assertEquals getPath assertEquals getPath assertNull getPath getPath fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getPathTest()
focal_class.declarator: log = LoggerFactory.getLogger(IdentifierManager.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(IdentifierManager.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: root
focal_class.modifier: private final
focal_class.original_string: private final Root root;
focal_class.type: Root
focal_class.var_name: root
focal_class.declarator: effectiveNodeTypeProvider
focal_class.modifier: private final
focal_class.original_string: private final EffectiveNodeTypeProvider effectiveNodeTypeProvider;
focal_class.type: EffectiveNodeTypeProvider
focal_class.var_name: effectiveNodeTypeProvider
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/identifier/IdentifierManager.java
focal_class.identifier: IdentifierManager
focal_class.class_method_signature: IdentifierManager.IdentifierManager(Root root)
focal_class.full_signature: public  IdentifierManager(Root root)
focal_class.identifier: IdentifierManager
focal_class.modifiers: public
focal_class.parameters: (Root root)
focal_class.signature:  IdentifierManager(Root root)
focal_class.class_method_signature: IdentifierManager.generateUUID()
focal_class.full_signature: @NotNull public static String generateUUID()
focal_class.identifier: generateUUID
focal_class.modifiers: @NotNull public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String generateUUID()
focal_class.class_method_signature: IdentifierManager.generateUUID(String hint)
focal_class.full_signature: @NotNull public static String generateUUID(String hint)
focal_class.identifier: generateUUID
focal_class.modifiers: @NotNull public static
focal_class.parameters: (String hint)
focal_class.return: String
focal_class.signature: String generateUUID(String hint)
focal_class.class_method_signature: IdentifierManager.isValidUUID(String uuid)
focal_class.full_signature: public static boolean isValidUUID(String uuid)
focal_class.identifier: isValidUUID
focal_class.modifiers: public static
focal_class.parameters: (String uuid)
focal_class.return: boolean
focal_class.signature: boolean isValidUUID(String uuid)
focal_class.class_method_signature: IdentifierManager.getIdentifier(Tree tree)
focal_class.full_signature: @NotNull public static String getIdentifier(Tree tree)
focal_class.identifier: getIdentifier
focal_class.modifiers: @NotNull public static
focal_class.parameters: (Tree tree)
focal_class.return: String
focal_class.signature: String getIdentifier(Tree tree)
focal_class.class_method_signature: IdentifierManager.getTree(String identifier)
focal_class.full_signature: @Nullable public Tree getTree(String identifier)
focal_class.identifier: getTree
focal_class.modifiers: @Nullable public
focal_class.parameters: (String identifier)
focal_class.return: Tree
focal_class.signature: Tree getTree(String identifier)
focal_class.class_method_signature: IdentifierManager.getPath(String identifier)
focal_class.full_signature: @Nullable public String getPath(String identifier)
focal_class.identifier: getPath
focal_class.modifiers: @Nullable public
focal_class.parameters: (String identifier)
focal_class.return: String
focal_class.signature: String getPath(String identifier)
focal_class.class_method_signature: IdentifierManager.getPath(PropertyState referenceValue)
focal_class.full_signature: @Nullable public String getPath(PropertyState referenceValue)
focal_class.identifier: getPath
focal_class.modifiers: @Nullable public
focal_class.parameters: (PropertyState referenceValue)
focal_class.return: String
focal_class.signature: String getPath(PropertyState referenceValue)
focal_class.class_method_signature: IdentifierManager.getPath(PropertyValue referenceValue)
focal_class.full_signature: @Nullable public String getPath(PropertyValue referenceValue)
focal_class.identifier: getPath
focal_class.modifiers: @Nullable public
focal_class.parameters: (PropertyValue referenceValue)
focal_class.return: String
focal_class.signature: String getPath(PropertyValue referenceValue)
focal_class.class_method_signature: IdentifierManager.getReferences(boolean weak, @NotNull Tree tree, @Nullable final String propertyName)
focal_class.full_signature: @NotNull public Iterable<String> getReferences(boolean weak, @NotNull Tree tree, @Nullable final String propertyName)
focal_class.identifier: getReferences
focal_class.modifiers: @NotNull public
focal_class.parameters: (boolean weak, @NotNull Tree tree, @Nullable final String propertyName)
focal_class.return: Iterable<String>
focal_class.signature: Iterable<String> getReferences(boolean weak, @NotNull Tree tree, @Nullable final String propertyName)
focal_class.class_method_signature: IdentifierManager.findPaths(@NotNull final Result result, @NotNull final String uuid,
                                         @Nullable final String propertyName, final boolean weak)
focal_class.full_signature: @NotNull private Iterable<String> findPaths(@NotNull final Result result, @NotNull final String uuid,
                                         @Nullable final String propertyName, final boolean weak)
focal_class.identifier: findPaths
focal_class.modifiers: @NotNull private
focal_class.parameters: (@NotNull final Result result, @NotNull final String uuid,
                                         @Nullable final String propertyName, final boolean weak)
focal_class.return: Iterable<String>
focal_class.signature: Iterable<String> findPaths(@NotNull final Result result, @NotNull final String uuid,
                                         @Nullable final String propertyName, final boolean weak)
focal_class.class_method_signature: IdentifierManager.getReferences(@NotNull Tree tree, @NotNull final String propertyName,
                                            @NotNull String ntName, boolean weak)
focal_class.full_signature: @NotNull public Iterable<String> getReferences(@NotNull Tree tree, @NotNull final String propertyName,
                                            @NotNull String ntName, boolean weak)
focal_class.identifier: getReferences
focal_class.modifiers: @NotNull public
focal_class.parameters: (@NotNull Tree tree, @NotNull final String propertyName,
                                            @NotNull String ntName, boolean weak)
focal_class.return: Iterable<String>
focal_class.signature: Iterable<String> getReferences(@NotNull Tree tree, @NotNull final String propertyName,
                                            @NotNull String ntName, boolean weak)
focal_class.class_method_signature: IdentifierManager.resolveUUID(String uuid)
focal_class.full_signature: @Nullable public String resolveUUID(String uuid)
focal_class.identifier: resolveUUID
focal_class.modifiers: @Nullable public
focal_class.parameters: (String uuid)
focal_class.return: String
focal_class.signature: String resolveUUID(String uuid)
focal_class.class_method_signature: IdentifierManager.resolveUUID(PropertyState uuid)
focal_class.full_signature: private String resolveUUID(PropertyState uuid)
focal_class.identifier: resolveUUID
focal_class.modifiers: private
focal_class.parameters: (PropertyState uuid)
focal_class.return: String
focal_class.signature: String resolveUUID(PropertyState uuid)
focal_class.class_method_signature: IdentifierManager.resolveUUID(PropertyValue uuid)
focal_class.full_signature: private String resolveUUID(PropertyValue uuid)
focal_class.identifier: resolveUUID
focal_class.modifiers: private
focal_class.parameters: (PropertyValue uuid)
focal_class.return: String
focal_class.signature: String resolveUUID(PropertyValue uuid)
focal_method.body: @Nullable
      public String getPath(String identifier) {
          Tree tree = getTree(identifier);
          return tree != null && tree.exists()
              ? tree.getPath()
              : null;
      }
focal_method.class_method_signature: IdentifierManager.getPath(String identifier)
focal_method.full_signature: @Nullable public String getPath(String identifier)
focal_method.identifier: getPath
focal_method.invocations: getTree exists getPath
focal_method.modifiers: @Nullable public
focal_method.parameters: (String identifier)
focal_method.return: String
focal_method.signature: String getPath(String identifier)