Package org.hibernate.processor.xml
Class XmlMetaEntity
- java.lang.Object
-
- org.hibernate.processor.xml.XmlMetaEntity
-
- All Implemented Interfaces:
ImportContext
,Metamodel
public class XmlMetaEntity extends Object implements Metamodel
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()
Context
getContext()
TypeElement
getElement()
List<MetaAttribute>
getMembers()
String
getPackageName()
String
getQualifiedName()
String
getSimpleName()
@Nullable String
getSupertypeName()
String
importType(String fqcn)
Add fqcn to the import list.List<AnnotationMirror>
inheritedAnnotations()
boolean
isImplementation()
Is this an implementation of a repository interface?boolean
isInjectable()
Can this be injected into things?boolean
isJakartaDataStyle()
Is it a Jakarta Data style metamodel interface?boolean
isMetaComplete()
String
scope()
What is its CDI scope for injection?String
staticImport(String fqcn, String member)
String
toString()
-
-
-
Method Detail
-
getSimpleName
public String getSimpleName()
- Specified by:
getSimpleName
in interfaceMetamodel
-
getQualifiedName
public String getQualifiedName()
- Specified by:
getQualifiedName
in interfaceMetamodel
-
getPackageName
public String getPackageName()
- Specified by:
getPackageName
in interfaceMetamodel
-
getSupertypeName
public @Nullable String getSupertypeName()
- Specified by:
getSupertypeName
in interfaceMetamodel
-
getMembers
public List<MetaAttribute> getMembers()
- Specified by:
getMembers
in interfaceMetamodel
-
generateImports
public String generateImports()
- Specified by:
generateImports
in interfaceImportContext
- Specified by:
generateImports
in interfaceMetamodel
-
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 interfaceMetamodel
- 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 interfaceMetamodel
-
getElement
public TypeElement getElement()
- Specified by:
getElement
in interfaceMetamodel
-
isMetaComplete
public boolean isMetaComplete()
- Specified by:
isMetaComplete
in interfaceMetamodel
-
getContext
public Context getContext()
- Specified by:
getContext
in interfaceMetamodel
-
isImplementation
public boolean isImplementation()
Description copied from interface:Metamodel
Is this an implementation of a repository interface?- Specified by:
isImplementation
in interfaceMetamodel
-
isInjectable
public boolean isInjectable()
Description copied from interface:Metamodel
Can this be injected into things?- Specified by:
isInjectable
in interfaceMetamodel
-
scope
public String scope()
Description copied from interface:Metamodel
What is its CDI scope for injection?
-
isJakartaDataStyle
public boolean isJakartaDataStyle()
Description copied from interface:Metamodel
Is it a Jakarta Data style metamodel interface?- Specified by:
isJakartaDataStyle
in interfaceMetamodel
-
inheritedAnnotations
public List<AnnotationMirror> inheritedAnnotations()
- Specified by:
inheritedAnnotations
in interfaceMetamodel
-
-