test_class.declarator: NOTATION = "GENERIC"
test_class.modifier: protected static final
test_class.original_string: protected static final String NOTATION = "GENERIC";
test_class.type: String
test_class.var_name: NOTATION
test_class.declarator: ADDRESS = "Some obscure address"
test_class.modifier: protected static final
test_class.original_string: protected static final String ADDRESS = "Some obscure address";
test_class.type: String
test_class.var_name: ADDRESS
test_class.file: ontopia-engine/src/test/java/net/ontopia/infoset/impl/basic/GenericLocatorTest.java
test_class.identifier: GenericLocatorTest
test_class.superclass: extends AbstractLocatorTest
test_case.body: @Test
    public void testEquals() {
      LocatorIF locator = createLocator(NOTATION, ADDRESS);
      Assert.assertEquals("locator does not equal itself", locator, locator);
      Assert.assertFalse("locator equals null", locator.equals(null));
      
      LocatorIF locator2 = createLocator("generic", ADDRESS);
      Assert.assertEquals("comparison of notation name not case-insensitive", locator2, locator);
    }
test_case.class_method_signature: GenericLocatorTest.testEquals()
test_case.full_signature: @Test public void testEquals()
test_case.identifier: testEquals
test_case.invocations: createLocator assertEquals assertFalse equals createLocator assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEquals()
focal_class.declarator: serialVersionUID = 3066225165288209215L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 3066225165288209215L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: notation
focal_class.modifier: protected
focal_class.original_string: protected String notation;
focal_class.type: String
focal_class.var_name: notation
focal_class.declarator: address
focal_class.modifier: protected
focal_class.original_string: protected String address;
focal_class.type: String
focal_class.var_name: address
focal_class.file: ontopia-engine/src/main/java/net/ontopia/infoset/impl/basic/GenericLocator.java
focal_class.identifier: GenericLocator
focal_class.interfaces: implements Externalizable
focal_class.class_method_signature: GenericLocator.GenericLocator()
focal_class.full_signature: public  GenericLocator()
focal_class.identifier: GenericLocator
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  GenericLocator()
focal_class.class_method_signature: GenericLocator.GenericLocator(String notation, String address)
focal_class.full_signature: public  GenericLocator(String notation, String address)
focal_class.identifier: GenericLocator
focal_class.modifiers: public
focal_class.parameters: (String notation, String address)
focal_class.signature:  GenericLocator(String notation, String address)
focal_class.class_method_signature: GenericLocator.getNotation()
focal_class.full_signature: @Override public String getNotation()
focal_class.identifier: getNotation
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getNotation()
focal_class.class_method_signature: GenericLocator.getAddress()
focal_class.full_signature: @Override public String getAddress()
focal_class.identifier: getAddress
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getAddress()
focal_class.class_method_signature: GenericLocator.resolveAbsolute(String address)
focal_class.full_signature: @Override public LocatorIF resolveAbsolute(String address)
focal_class.identifier: resolveAbsolute
focal_class.modifiers: @Override public
focal_class.parameters: (String address)
focal_class.return: LocatorIF
focal_class.signature: LocatorIF resolveAbsolute(String address)
focal_class.class_method_signature: GenericLocator.getExternalForm()
focal_class.full_signature: @Override public String getExternalForm()
focal_class.identifier: getExternalForm
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getExternalForm()
focal_class.class_method_signature: GenericLocator.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: GenericLocator.equals(Object object)
focal_class.full_signature: @Override public boolean equals(Object object)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object object)
focal_class.return: boolean
focal_class.signature: boolean equals(Object object)
focal_class.class_method_signature: GenericLocator.writeExternal(ObjectOutput out)
focal_class.full_signature: @Override public void writeExternal(ObjectOutput out)
focal_class.identifier: writeExternal
focal_class.modifiers: @Override public
focal_class.parameters: (ObjectOutput out)
focal_class.return: void
focal_class.signature: void writeExternal(ObjectOutput out)
focal_class.class_method_signature: GenericLocator.readExternal(ObjectInput in)
focal_class.full_signature: @Override public void readExternal(ObjectInput in)
focal_class.identifier: readExternal
focal_class.modifiers: @Override public
focal_class.parameters: (ObjectInput in)
focal_class.return: void
focal_class.signature: void readExternal(ObjectInput in)
focal_class.superclass: extends AbstractLocator
focal_method.body: @Override
    public boolean equals(Object object) {
      try {
        LocatorIF locator = (LocatorIF)object;
        return address.equals(locator.getAddress()) &&
          notation.equalsIgnoreCase(locator.getNotation());
      } catch (ClassCastException e) {
        return false; // In case the object is not a locator
      } catch (NullPointerException e) {
        return false; // In case the object is null
      }
    }
focal_method.class_method_signature: GenericLocator.equals(Object object)
focal_method.full_signature: @Override public boolean equals(Object object)
focal_method.identifier: equals
focal_method.invocations: equals getAddress equalsIgnoreCase getNotation
focal_method.modifiers: @Override public
focal_method.parameters: (Object object)
focal_method.return: boolean
focal_method.signature: boolean equals(Object object)