public class DCModuleParser extends java.lang.Object implements ModuleParser
| Modifier and Type | Field and Description |
|---|---|
private static org.jdom.Namespace |
DC_NS |
private static org.jdom.Namespace |
RDF_NS |
private static java.lang.String |
RDF_URI |
private static org.jdom.Namespace |
TAXO_NS |
private static java.lang.String |
TAXO_URI |
| Constructor and Description |
|---|
DCModuleParser() |
| Modifier and Type | Method and Description |
|---|---|
private org.jdom.Namespace |
getDCNamespace() |
java.lang.String |
getNamespaceUri()
Returns the namespace URI this parser handles.
|
private org.jdom.Namespace |
getRDFNamespace() |
protected java.lang.String |
getTaxonomy(org.jdom.Element desc)
Utility method to parse a taxonomy from an element.
|
private org.jdom.Namespace |
getTaxonomyNamespace() |
Module |
parse(org.jdom.Element dcRoot)
Parse an element tree and return the module found in it.
|
protected java.util.List |
parseElementList(java.util.List eList)
Utility method to parse a list of strings out of a list of elements.
|
protected java.util.List |
parseElementListDate(java.util.List eList)
Utility method to parse a list of dates out of a list of elements.
|
protected java.util.List |
parseSubjects(java.util.List eList)
Utility method to parse a list of subjects out of a list of elements.
|
private static final java.lang.String RDF_URI
private static final java.lang.String TAXO_URI
private static final org.jdom.Namespace DC_NS
private static final org.jdom.Namespace RDF_NS
private static final org.jdom.Namespace TAXO_NS
public final java.lang.String getNamespaceUri()
ModuleParsergetNamespaceUri in interface ModuleParserprivate final org.jdom.Namespace getDCNamespace()
private final org.jdom.Namespace getRDFNamespace()
private final org.jdom.Namespace getTaxonomyNamespace()
public Module parse(org.jdom.Element dcRoot)
parse in interface ModuleParserdcRoot - the root element containing the module elements.protected final java.lang.String getTaxonomy(org.jdom.Element desc)
desc - the taxonomy description element.protected final java.util.List parseSubjects(java.util.List eList)
eList - the element list to parse.protected final java.util.List parseElementList(java.util.List eList)
eList - the list of elements to parse.protected final java.util.List parseElementListDate(java.util.List eList)
eList - the list of elements to parse.Copyright © Sun Microsystems. All Rights Reserved.