Class 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 Detail

      • importType

        public java.lang.String importType​(java.lang.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> imports java.util.Collection and returns Collection org.marvel.Hulk[] imports org.marvel.Hulk and returns Hulk

        Specified by:
        importType in interface ImportContext
        Specified by:
        importType in interface MetaEntity
        fqcn - Fully qualified class name of the type to import.
        import string
      • getTypeElement

        public javax.lang.model.element.TypeElement getTypeElement()
        Specified by:
        getTypeElement in interface MetaEntity
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object