test_class.declarator: topicmap
test_class.modifier: protected
test_class.original_string: protected TopicMapIF    topicmap;
test_class.type: TopicMapIF
test_class.var_name: topicmap
test_class.declarator: builder
test_class.modifier: protected
test_class.original_string: protected TopicMapBuilderIF builder;
test_class.type: TopicMapBuilderIF
test_class.var_name: builder
test_class.file: ontopia-engine/src/test/java/net/ontopia/topicmaps/utils/IdentityUtilsTest.java
test_class.identifier: IdentityUtilsTest
test_case.body: @Test
    public void testGetObjectBySymbolicId() {
      String symbolicId = "foo";
      TopicIF topic = builder.makeTopic();
      LocatorIF base = topicmap.getStore().getBaseAddress();
      LocatorIF loc = base.resolveAbsolute("#" + symbolicId);
      topic.addItemIdentifier(loc);
  
      TMObjectIF topic2 = IdentityUtils.getObjectBySymbolicId(topicmap, symbolicId);
      Assert.assertEquals("Topic not found by symbolic id", topic, topic2);    
    }
test_case.class_method_signature: IdentityUtilsTest.testGetObjectBySymbolicId()
test_case.full_signature: @Test public void testGetObjectBySymbolicId()
test_case.identifier: testGetObjectBySymbolicId
test_case.invocations: makeTopic getBaseAddress getStore resolveAbsolute addItemIdentifier getObjectBySymbolicId assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetObjectBySymbolicId()
focal_class.file: ontopia-engine/src/main/java/net/ontopia/topicmaps/utils/IdentityUtils.java
focal_class.identifier: IdentityUtils
focal_class.class_method_signature: IdentityUtils.getObjectBySymbolicId(TopicMapIF topicmap, String symbolicId)
focal_class.full_signature: public static TMObjectIF getObjectBySymbolicId(TopicMapIF topicmap, String symbolicId)
focal_class.identifier: getObjectBySymbolicId
focal_class.modifiers: public static
focal_class.parameters: (TopicMapIF topicmap, String symbolicId)
focal_class.return: TMObjectIF
focal_class.signature: TMObjectIF getObjectBySymbolicId(TopicMapIF topicmap, String symbolicId)
focal_class.class_method_signature: IdentityUtils.getSymbolicIdLocator(TopicMapIF topicmap, String symbolicId)
focal_class.full_signature: public static LocatorIF getSymbolicIdLocator(TopicMapIF topicmap, String symbolicId)
focal_class.identifier: getSymbolicIdLocator
focal_class.modifiers: public static
focal_class.parameters: (TopicMapIF topicmap, String symbolicId)
focal_class.return: LocatorIF
focal_class.signature: LocatorIF getSymbolicIdLocator(TopicMapIF topicmap, String symbolicId)
focal_class.class_method_signature: IdentityUtils.findSameTopic(TopicMapIF topicmap, TopicIF topic)
focal_class.full_signature: public static Collection<TopicIF> findSameTopic(TopicMapIF topicmap, TopicIF topic)
focal_class.identifier: findSameTopic
focal_class.modifiers: public static
focal_class.parameters: (TopicMapIF topicmap, TopicIF topic)
focal_class.return: Collection<TopicIF>
focal_class.signature: Collection<TopicIF> findSameTopic(TopicMapIF topicmap, TopicIF topic)
focal_method.body: public static TMObjectIF getObjectBySymbolicId(TopicMapIF topicmap, String symbolicId) {
      LocatorIF loc = getSymbolicIdLocator(topicmap, symbolicId);
      if (loc != null)
        return topicmap.getObjectByItemIdentifier(loc);
      else
        return null;
    }
focal_method.class_method_signature: IdentityUtils.getObjectBySymbolicId(TopicMapIF topicmap, String symbolicId)
focal_method.full_signature: public static TMObjectIF getObjectBySymbolicId(TopicMapIF topicmap, String symbolicId)
focal_method.identifier: getObjectBySymbolicId
focal_method.invocations: getSymbolicIdLocator getObjectByItemIdentifier
focal_method.modifiers: public static
focal_method.parameters: (TopicMapIF topicmap, String symbolicId)
focal_method.return: TMObjectIF
focal_method.signature: TMObjectIF getObjectBySymbolicId(TopicMapIF topicmap, String symbolicId)