Class ClassMetaDataIterator

java.lang.Object
org.apache.openjpa.lib.meta.ClassMetaDataIterator
All Implemented Interfaces:
MetaDataIterator, Closeable

public class ClassMetaDataIterator extends Object implements MetaDataIterator
Iterator over all metadata resources that might contain the metadata for a given class, starting with the most general. Assumes that package-level resources are named "package.<suffix>".
Author:
Abe White
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClassMetaDataIterator(Class<?> cls, String suffix, boolean topDown)
    Constructor; supply the class whose metadata to find, the suffix of metadata files, and whether to parse top-down or bottom-up.
    ClassMetaDataIterator(Class<?> cls, String suffix, ClassLoader loader, boolean topDown)
    Constructor; supply the class whose metadata to find, the suffix of metadata files, and whether to parse top-down or bottom-up.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close the resources used by this iterator.
    Return the last-iterated metadata resource content as a file, or null if not an extant file.
    Return the last-iterated metadata resource content as a stream.
    boolean
    Return whether there is another resource to iterate over.
    Return the next metadata resource.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait