org.hibernate.jpamodelgen.model
Interface ImportContext

All Known Subinterfaces:
MetaEntity
All Known Implementing Classes:
AnnotationEmbeddable, AnnotationMetaEntity, ImportContextImpl, XmlMetaEmbeddable, XmlMetaEntity

public interface ImportContext

Author:
Max Andersen, Hardy Ferentschik, Emmanuel Bernard

Method Summary
 String generateImports()
           
 String importType(String fqcn)
          Add fqcn to the import list.
 String staticImport(String fqcn, String member)
           
 

Method Detail

importType

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

Parameters:
fqcn - Fully qualified class name of the type to import.
Returns:
import string

staticImport

String staticImport(String fqcn,
                    String member)

generateImports

String generateImports()


Copyright © 2009-2010. All Rights Reserved.