Package org.apache.openjpa.lib.meta
Interface MetaDataParser
- All Known Subinterfaces:
AbstractCFMetaDataFactory.Parser
,SchemaParser
- All Known Implementing Classes:
CFMetaDataParser
,PersistenceProductDerivation.ConfigurationParser
,XMLMetaDataParser
,XMLPersistenceMappingParser
,XMLPersistenceMetaDataParser
,XMLSchemaParser
,XMLVersionParser
public interface MetaDataParser
Interface for metadata parsers.
- Author:
- Abe White
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears the cache of parsed resource names.Return the results from the last parse.void
Parse the given file, which may be a directory, in which case it will be scanned recursively for metadata files.void
Parse the metadata in the given reader.void
Parse all possible metadata locations for the given class, going top-down or bottom-up.void
Parse the given resource.void
Parse the given resource.void
parse
(MetaDataIterator itr) Parse the metadata supplied by the given iterator.void
setClassLoader
(ClassLoader loader) The classloader to use to resolve resources, or null for impl-defined default.
-
Method Details
-
setClassLoader
The classloader to use to resolve resources, or null for impl-defined default. -
getResults
List getResults()Return the results from the last parse. -
parse
Parse the given resource.- Throws:
IOException
-
parse
Parse the given resource.- Throws:
IOException
-
parse
Parse the given file, which may be a directory, in which case it will be scanned recursively for metadata files.- Throws:
IOException
-
parse
Parse all possible metadata locations for the given class, going top-down or bottom-up. If the class is null, only top-level locations will be parsed.- Throws:
IOException
-
parse
Parse the metadata in the given reader.- Parameters:
content
- reader containing the metadata to parsesourceName
- the name of the source being parsed, for use in error messages- Throws:
IOException
-
parse
Parse the metadata supplied by the given iterator.- Throws:
IOException
-
clear
void clear()Clears the cache of parsed resource names.
-