/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.jpamodelgen.model; /** * @author Max Andersen * @author Hardy Ferentschik * @author Emmanuel Bernard */ public interface ImportContext { /** * Add fqcn to the import list. Returns fqcn as needed in source code. * Attempts to handle fqcn with array and generics references. * <p/> * e.g. * java.util.Collection<org.marvel.Hulk> imports java.util.Collection and returns Collection * org.marvel.Hulk[] imports org.marvel.Hulk and returns Hulk * * @param fqcn Fully qualified class name of the type to import. * * @return import string */ String importType(String fqcn); String staticImport(String fqcn, String member); String generateImports(); }