|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.lib.meta.ClassMetaDataIterator
public class ClassMetaDataIterator
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>".
| Constructor Summary | |
|---|---|
ClassMetaDataIterator(java.lang.Class cls,
java.lang.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(java.lang.Class cls,
java.lang.String suffix,
java.lang.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 | |
|---|---|
void |
close()
Close the resources used by this iterator. |
java.io.File |
getFile()
Return the last-iterated metadata resource content as a file, or null if not an extant file. |
java.io.InputStream |
getInputStream()
Return the last-iterated metadata resource content as a stream. |
boolean |
hasNext()
Return whether there is another resource to iterate over. |
java.lang.Object |
next()
Return the next metadata resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassMetaDataIterator(java.lang.Class cls,
java.lang.String suffix,
boolean topDown)
public ClassMetaDataIterator(java.lang.Class cls,
java.lang.String suffix,
java.lang.ClassLoader loader,
boolean topDown)
| Method Detail |
|---|
public boolean hasNext()
throws java.io.IOException
MetaDataIterator
hasNext in interface MetaDataIteratorjava.io.IOException
public java.lang.Object next()
throws java.io.IOException
MetaDataIterator
next in interface MetaDataIteratorjava.io.IOException
public java.io.InputStream getInputStream()
throws java.io.IOException
MetaDataIterator
getInputStream in interface MetaDataIteratorjava.io.IOException
public java.io.File getFile()
throws java.io.IOException
MetaDataIterator
getFile in interface MetaDataIteratorjava.io.IOExceptionpublic void close()
MetaDataIterator
close in interface MetaDataIteratorclose in interface Closeable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||