public class DCModuleParser extends Object implements ModuleParser
Constructor and Description |
---|
DCModuleParser() |
Modifier and Type | Method and Description |
---|---|
String |
getNamespaceUri()
Returns the namespace URI this parser handles.
|
protected String |
getTaxonomy(org.jdom2.Element desc)
Utility method to parse a taxonomy from an element.
|
Module |
parse(org.jdom2.Element dcRoot,
Locale locale)
Parse an element tree and return the module found in it.
|
protected List<String> |
parseElementList(List<org.jdom2.Element> elements)
Utility method to parse a list of strings out of a list of elements.
|
protected List<Date> |
parseElementListDate(List<org.jdom2.Element> elements,
Locale locale)
Utility method to parse a list of dates out of a list of elements.
|
protected List<DCSubject> |
parseSubjects(List<org.jdom2.Element> eList)
Utility method to parse a list of subjects out of a list of elements.
|
public final String getNamespaceUri()
ModuleParser
getNamespaceUri
in interface ModuleParser
public Module parse(org.jdom2.Element dcRoot, Locale locale)
parse
in interface ModuleParser
dcRoot
- the root element containing the module elements.locale
- for date/time parsingprotected final String getTaxonomy(org.jdom2.Element desc)
desc
- the taxonomy description element.protected final List<DCSubject> parseSubjects(List<org.jdom2.Element> eList)
eList
- the element list to parse.protected final List<String> parseElementList(List<org.jdom2.Element> elements)
elements
- the list of elements to parse.Copyright © 2022. All rights reserved.