Package org.hibernate.jpamodelgen.xml
Class XmlMetaEntity
- java.lang.Object
-
- org.hibernate.jpamodelgen.xml.XmlMetaEntity
-
- All Implemented Interfaces:
ImportContext
,MetaEntity
public class XmlMetaEntity extends Object implements MetaEntity
Collects XML-based meta information about an annotated type (entity, embeddable or mapped superclass).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateImports()
List<MetaAttribute>
getMembers()
String
getPackageName()
String
getQualifiedName()
String
getSimpleName()
TypeElement
getTypeElement()
String
importType(String fqcn)
Add fqcn to the import list.boolean
isMetaComplete()
String
staticImport(String fqcn, String member)
String
toString()
-
-
-
Method Detail
-
getSimpleName
public String getSimpleName()
- Specified by:
getSimpleName
in interfaceMetaEntity
-
getQualifiedName
public String getQualifiedName()
- Specified by:
getQualifiedName
in interfaceMetaEntity
-
getPackageName
public String getPackageName()
- Specified by:
getPackageName
in interfaceMetaEntity
-
getMembers
public List<MetaAttribute> getMembers()
- Specified by:
getMembers
in interfaceMetaEntity
-
generateImports
public String generateImports()
- Specified by:
generateImports
in interfaceImportContext
- Specified by:
generateImports
in interfaceMetaEntity
-
importType
public 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<org.marvel.Hulk>
importsjava.util.Collection
and returnsCollection
org.marvel.Hulk[]
importsorg.marvel.Hulk
and returnsHulk
- Specified by:
importType
in interfaceImportContext
- Specified by:
importType
in interfaceMetaEntity
- Parameters:
fqcn
- Fully qualified class name of the type to import.- Returns:
- import string
-
staticImport
public String staticImport(String fqcn, String member)
- Specified by:
staticImport
in interfaceImportContext
- Specified by:
staticImport
in interfaceMetaEntity
-
getTypeElement
public TypeElement getTypeElement()
- Specified by:
getTypeElement
in interfaceMetaEntity
-
isMetaComplete
public boolean isMetaComplete()
- Specified by:
isMetaComplete
in interfaceMetaEntity
-
-