Package org.hibernate.jpamodelgen.model
Interface ImportContext
-
- All Known Subinterfaces:
MetaEntity
- All Known Implementing Classes:
AnnotationMetaEntity
,ImportContextImpl
,XmlMetaEntity
public interface ImportContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
generateImports()
java.lang.String
importType(java.lang.String fqcn)
Add fqcn to the import list.java.lang.String
staticImport(java.lang.String fqcn, java.lang.String member)
-
-
-
Method Detail
-
importType
java.lang.String importType(java.lang.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<org.marvel.Hulk>
importsjava.util.Collection
and returnsCollection
org.marvel.Hulk[]
importsorg.marvel.Hulk
and returnsHulk
- Parameters:
fqcn
- Fully qualified class name of the type to import.- Returns:
- import string
-
staticImport
java.lang.String staticImport(java.lang.String fqcn, java.lang.String member)
-
generateImports
java.lang.String generateImports()
-
-