public class XmlMetaEntity extends Object implements MetaEntity
Collects XML-based meta information about an annotated type (entity, embeddable or mapped superclass).
| Modifier and Type | Method and 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() |
public String getSimpleName()
getSimpleName in interface MetaEntitypublic String getQualifiedName()
getQualifiedName in interface MetaEntitypublic String getPackageName()
getPackageName in interface MetaEntitypublic List<MetaAttribute> getMembers()
getMembers in interface MetaEntitypublic String generateImports()
generateImports in interface ImportContextgenerateImports in interface MetaEntitypublic String importType(String fqcn)
ImportContextAdd fqcn to the import list. Returns fqcn as needed in source code. Attempts to handle fqcn with array and generics references. <p/> e.g. java.util.Collection<org.marvel.Hulk> imports java.util.Collection and returns Collection org.marvel.Hulk[] imports org.marvel.Hulk and returns Hulk
importType in interface ImportContextimportType in interface MetaEntityfqcn - Fully qualified class name of the type to import.public String staticImport(String fqcn, String member)
staticImport in interface ImportContextstaticImport in interface MetaEntitypublic TypeElement getTypeElement()
getTypeElement in interface MetaEntitypublic boolean isMetaComplete()
isMetaComplete in interface MetaEntityCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.