public class ERMetadataParser extends Object
Constructor and Description |
---|
ERMetadataParser()
Constructs a new ERMetadataParser.
|
Modifier and Type | Method and Description |
---|---|
void |
addMetadataDirectoryParser(IERMetadataDirectoryParser metadataDirectoryParser)
Adds a metadata directory parser implementation.
|
void |
addMetadataParser(IERMetadataParser metadataParser)
Adds a metadata parser implementation.
|
static ERMetadataParser |
metadataParser()
Returns an ERMetadataParser that is best suited for your environment.
|
ERMetadataDirectorySet |
parseMetadata(File importFile)
Parses the metadata from the given file, converts any unparsed directories to parsed directories,
and removes any leftover unparsed directories.
|
static void |
setMetadataProcessor(ERMetadataParser metadataParser)
Sets the singleton metadata parser implementation to use.
|
public static void setMetadataProcessor(ERMetadataParser metadataParser)
metadataParser
- the metadata parser implementation to usepublic static ERMetadataParser metadataParser()
public void addMetadataParser(IERMetadataParser metadataParser)
metadataParser
- a metadata parser implementationpublic void addMetadataDirectoryParser(IERMetadataDirectoryParser metadataDirectoryParser)
metadataDirectoryParser
- a metadata directory parser implementationpublic ERMetadataDirectorySet parseMetadata(File importFile) throws ERMetadataParserException
importFile
- the file to parserERMetadataParserException
- if metadata parsing failsCopyright © 2002 – 2024 Project Wonder.