org.hibernate.jpamodelgen.model
Interface MetaEntity

All Superinterfaces:
ImportContext
All Known Implementing Classes:
AnnotationEmbeddable, AnnotationMetaEntity, XmlMetaEmbeddable, XmlMetaEntity

public interface MetaEntity
extends ImportContext

Author:
Hardy Ferentschik

Method Summary
 String generateImports()
           
 List<MetaAttribute> getMembers()
           
 String getPackageName()
           
 String getQualifiedName()
           
 String getSimpleName()
           
 TypeElement getTypeElement()
           
 String importType(Name qualifiedName)
           
 String importType(String fqcn)
          Add fqcn to the import list.
 boolean isMetaComplete()
           
 String staticImport(String fqcn, String member)
           
 

Method Detail

getSimpleName

String getSimpleName()

getQualifiedName

String getQualifiedName()

getPackageName

String getPackageName()

getMembers

List<MetaAttribute> getMembers()

generateImports

String generateImports()
Specified by:
generateImports in interface ImportContext

importType

String importType(String fqcn)
Description copied from interface: ImportContext
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 - Fully qualified class name of the type to import.
Returns:
import string

staticImport

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

importType

String importType(Name qualifiedName)

getTypeElement

TypeElement getTypeElement()

isMetaComplete

boolean isMetaComplete()


Copyright © 2009-2010. All Rights Reserved.