test_class.declarator: resolver
test_class.modifier: private
test_class.original_string: private ClassAliasIdResolver resolver;
test_class.type: ClassAliasIdResolver
test_class.var_name: resolver
test_class.declarator: baseType
test_class.modifier: private
test_class.original_string: private JavaType baseType;
test_class.type: JavaType
test_class.var_name: baseType
test_class.declarator: typeFactory
test_class.modifier: private
test_class.original_string: private TypeFactory typeFactory;
test_class.type: TypeFactory
test_class.var_name: typeFactory
test_class.file: simple-spring-memcached/src/test/java/com/google/code/ssm/json/ClassAliasIdResolverTest.java
test_class.identifier: ClassAliasIdResolverTest
test_case.body: @Test(expected = IllegalArgumentException.class)
      public void invalidAddClassToIdMapEmptyAlias() {
          resolver.addClassToId(ClassAliasIdResolverTest.class, "");
      }
test_case.class_method_signature: ClassAliasIdResolverTest.invalidAddClassToIdMapEmptyAlias()
test_case.full_signature: @Test(expected = IllegalArgumentException.class) public void invalidAddClassToIdMapEmptyAlias()
test_case.identifier: invalidAddClassToIdMapEmptyAlias
test_case.invocations: addClassToId
test_case.modifiers: @Test(expected = IllegalArgumentException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void invalidAddClassToIdMapEmptyAlias()
focal_class.declarator: idToClass = new HashMap<String, Class<?>>()
focal_class.modifier: private final
focal_class.original_string: private final Map<String, Class<?>> idToClass = new HashMap<String, Class<?>>();
focal_class.type: Map<String, Class<?>>
focal_class.var_name: idToClass
focal_class.declarator: classToId = new HashMap<Class<?>, String>()
focal_class.modifier: private final
focal_class.original_string: private final Map<Class<?>, String> classToId = new HashMap<Class<?>, String>();
focal_class.type: Map<Class<?>, String>
focal_class.var_name: classToId
focal_class.file: simple-spring-memcached/src/main/java/com/google/code/ssm/json/ClassAliasIdResolver.java
focal_class.identifier: ClassAliasIdResolver
focal_class.class_method_signature: ClassAliasIdResolver.ClassAliasIdResolver(final JavaType baseType, final TypeFactory typeFactory, final Map<String, Class<?>> idToClass,
              final Map<Class<?>, String> classToId)
focal_class.full_signature: public  ClassAliasIdResolver(final JavaType baseType, final TypeFactory typeFactory, final Map<String, Class<?>> idToClass,
              final Map<Class<?>, String> classToId)
focal_class.identifier: ClassAliasIdResolver
focal_class.modifiers: public
focal_class.parameters: (final JavaType baseType, final TypeFactory typeFactory, final Map<String, Class<?>> idToClass,
              final Map<Class<?>, String> classToId)
focal_class.signature:  ClassAliasIdResolver(final JavaType baseType, final TypeFactory typeFactory, final Map<String, Class<?>> idToClass,
              final Map<Class<?>, String> classToId)
focal_class.class_method_signature: ClassAliasIdResolver.idFromValue(final Object value)
focal_class.full_signature: @Override public String idFromValue(final Object value)
focal_class.identifier: idFromValue
focal_class.modifiers: @Override public
focal_class.parameters: (final Object value)
focal_class.return: String
focal_class.signature: String idFromValue(final Object value)
focal_class.class_method_signature: ClassAliasIdResolver.idFromValueAndType(final Object value, final Class<?> type)
focal_class.full_signature: @Override public String idFromValueAndType(final Object value, final Class<?> type)
focal_class.identifier: idFromValueAndType
focal_class.modifiers: @Override public
focal_class.parameters: (final Object value, final Class<?> type)
focal_class.return: String
focal_class.signature: String idFromValueAndType(final Object value, final Class<?> type)
focal_class.class_method_signature: ClassAliasIdResolver._typeFromId(final String id, final DatabindContext ctxt)
focal_class.full_signature: @Override protected JavaType _typeFromId(final String id, final DatabindContext ctxt)
focal_class.identifier: _typeFromId
focal_class.modifiers: @Override protected
focal_class.parameters: (final String id, final DatabindContext ctxt)
focal_class.return: JavaType
focal_class.signature: JavaType _typeFromId(final String id, final DatabindContext ctxt)
focal_class.class_method_signature: ClassAliasIdResolver.addClassToId(final Class<?> clazz, final String id)
focal_class.full_signature: public void addClassToId(final Class<?> clazz, final String id)
focal_class.identifier: addClassToId
focal_class.modifiers: public
focal_class.parameters: (final Class<?> clazz, final String id)
focal_class.return: void
focal_class.signature: void addClassToId(final Class<?> clazz, final String id)
focal_class.class_method_signature: ClassAliasIdResolver.init()
focal_class.full_signature: private void init()
focal_class.identifier: init
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.superclass: extends ClassNameIdResolver
focal_method.body: public void addClassToId(final Class<?> clazz, final String id) {
          Assert.notNull(clazz, "Class cannot be null");
          Assert.hasText(id, "Alias (id) cannot be null or contain only whitespaces");
  
          if (classToId.containsKey(clazz)) {
              throw new IllegalArgumentException("Class " + clazz + " has already defined alias (id) " + classToId.get(clazz)
                      + " cannot set another alias " + id);
          }
  
          if (idToClass.containsKey(id)) {
              throw new IllegalArgumentException("Alias (id) " + id + " is used by another class " + idToClass.get(id)
                      + " and cannot be used by " + clazz);
          }
  
          classToId.put(clazz, id);
          idToClass.put(id, clazz);
      }
focal_method.class_method_signature: ClassAliasIdResolver.addClassToId(final Class<?> clazz, final String id)
focal_method.full_signature: public void addClassToId(final Class<?> clazz, final String id)
focal_method.identifier: addClassToId
focal_method.invocations: notNull hasText containsKey get containsKey get put put
focal_method.modifiers: public
focal_method.parameters: (final Class<?> clazz, final String id)
focal_method.return: void
focal_method.signature: void addClassToId(final Class<?> clazz, final String id)