Package org.hibernate.jpamodelgen.xml
Class XmlMetaEntity
- java.lang.Object
-
- org.hibernate.jpamodelgen.xml.XmlMetaEntity
-
- All Implemented Interfaces:
ImportContext,MetaEntity
public class XmlMetaEntity extends java.lang.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 java.lang.StringgenerateImports()java.util.List<MetaAttribute>getMembers()java.lang.StringgetPackageName()java.lang.StringgetQualifiedName()java.lang.StringgetSimpleName()javax.lang.model.element.TypeElementgetTypeElement()java.lang.StringimportType(java.lang.String fqcn)Add fqcn to the import list.booleanisMetaComplete()java.lang.StringstaticImport(java.lang.String fqcn, java.lang.String member)java.lang.StringtoString()
-
-
-
Method Detail
-
getSimpleName
public java.lang.String getSimpleName()
- Specified by:
getSimpleNamein interfaceMetaEntity
-
getQualifiedName
public java.lang.String getQualifiedName()
- Specified by:
getQualifiedNamein interfaceMetaEntity
-
getPackageName
public java.lang.String getPackageName()
- Specified by:
getPackageNamein interfaceMetaEntity
-
getMembers
public java.util.List<MetaAttribute> getMembers()
- Specified by:
getMembersin interfaceMetaEntity
-
generateImports
public java.lang.String generateImports()
- Specified by:
generateImportsin interfaceImportContext- Specified by:
generateImportsin interfaceMetaEntity
-
importType
public java.lang.String importType(java.lang.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 java.lang.String staticImport(java.lang.String fqcn, java.lang.String member)- Specified by:
staticImportin interfaceImportContext- Specified by:
staticImportin interfaceMetaEntity
-
getTypeElement
public javax.lang.model.element.TypeElement getTypeElement()
- Specified by:
getTypeElementin interfaceMetaEntity
-
isMetaComplete
public boolean isMetaComplete()
- Specified by:
isMetaCompletein interfaceMetaEntity
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-