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 StringgenerateImports()List<MetaAttribute>getMembers()StringgetPackageName()StringgetQualifiedName()StringgetSimpleName()TypeElementgetTypeElement()StringimportType(String fqcn)Add fqcn to the import list.booleanisMetaComplete()StringstaticImport(String fqcn, String member)StringtoString()
-
-
-
Method Detail
-
getSimpleName
public String getSimpleName()
- Specified by:
getSimpleNamein interfaceMetaEntity
-
getQualifiedName
public String getQualifiedName()
- Specified by:
getQualifiedNamein interfaceMetaEntity
-
getPackageName
public String getPackageName()
- Specified by:
getPackageNamein interfaceMetaEntity
-
getMembers
public List<MetaAttribute> getMembers()
- Specified by:
getMembersin interfaceMetaEntity
-
generateImports
public String generateImports()
- Specified by:
generateImportsin interfaceImportContext- Specified by:
generateImportsin interfaceMetaEntity
-
importType
public String importType(String fqcn)
Description copied from interface:ImportContextAdd 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.Collectionand returnsCollectionorg.marvel.Hulk[]importsorg.marvel.Hulkand returnsHulk- Specified by:
importTypein interfaceImportContext- Specified by:
importTypein 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:
staticImportin interfaceImportContext- Specified by:
staticImportin interfaceMetaEntity
-
getTypeElement
public TypeElement getTypeElement()
- Specified by:
getTypeElementin interfaceMetaEntity
-
isMetaComplete
public boolean isMetaComplete()
- Specified by:
isMetaCompletein interfaceMetaEntity
-
-