org.hibernate.tool.hbm2x.pojo
Class ImportContextImpl

java.lang.Object
  extended by org.hibernate.tool.hbm2x.pojo.ImportContextImpl
All Implemented Interfaces:
ImportContext

public class ImportContextImpl
extends Object
implements ImportContext


Constructor Summary
ImportContextImpl(String basePackage)
           
 
Method Summary
 String generateImports()
           
 String importType(String fqcn)
          Add fqcn to the import list.
 String staticImport(String fqcn, String member)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportContextImpl

public ImportContextImpl(String basePackage)
Method Detail

importType

public String importType(String fqcn)
Add fqcn to the import list. Returns fqcn as needed in source code. Attempts to handle fqcn with array and generics references. e.g. java.util.Collection imports java.util.Collection and returns Collection org.marvel.Hulk[] imports org.marvel.Hulk and returns Hulk

Specified by:
importType in interface ImportContext
Parameters:
fqcn -
Returns:
import string

staticImport

public String staticImport(String fqcn,
                           String member)
Specified by:
staticImport in interface ImportContext

generateImports

public String generateImports()
Specified by:
generateImports in interface ImportContext