Package org.hibernate.processor.xml
Class XmlMetaEntity
java.lang.Object
org.hibernate.processor.xml.XmlMetaEntity
- All Implemented Interfaces:
ImportContext
,Metamodel
Collects XML-based meta information about an annotated type (entity, embeddable or mapped superclass).
-
Method Summary
Modifier and TypeMethodDescription@Nullable Element
importType
(String fqcn) Add fqcn to the import list.boolean
Is this an implementation of a repository interface?boolean
Can this be injected into things?boolean
Is it a Jakarta Data style metamodel interface?boolean
javadoc()
scope()
What is its CDI scope for injection?staticImport
(String fqcn, String member) toString()
-
Method Details
-
getSimpleName
- Specified by:
getSimpleName
in interfaceMetamodel
-
getQualifiedName
- Specified by:
getQualifiedName
in interfaceMetamodel
-
getPackageName
- Specified by:
getPackageName
in interfaceMetamodel
-
getSuperTypeElement
- Specified by:
getSuperTypeElement
in interfaceMetamodel
-
getMembers
- Specified by:
getMembers
in interfaceMetamodel
-
generateImports
- Specified by:
generateImports
in interfaceImportContext
- Specified by:
generateImports
in interfaceMetamodel
-
importType
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
- Specified by:
staticImport
in interfaceImportContext
- Specified by:
staticImport
in interfaceMetamodel
-
getElement
- Specified by:
getElement
in interfaceMetamodel
-
isMetaComplete
public boolean isMetaComplete()- Specified by:
isMetaComplete
in interfaceMetamodel
-
toString
-
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
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
- Specified by:
inheritedAnnotations
in interfaceMetamodel
-
javadoc
-