com.sun.syndication.io.impl

Class DCModuleParser

public class DCModuleParser extends Object implements ModuleParser

Parser for the Dublin Core module.
Field Summary
static NamespaceDC_NS
static NamespaceRDF_NS
static StringRDF_URI
static NamespaceTAXO_NS
static StringTAXO_URI
Method Summary
NamespacegetDCNamespace()
StringgetNamespaceUri()
NamespacegetRDFNamespace()
protected StringgetTaxonomy(Element desc)
Utility method to parse a taxonomy from an element.
NamespacegetTaxonomyNamespace()
Moduleparse(Element dcRoot)
Parse an element tree and return the module found in it.
protected ListparseElementList(List eList)
Utility method to parse a list of strings out of a list of elements.
protected ListparseElementListDate(List eList)
Utility method to parse a list of dates out of a list of elements.
protected ListparseSubjects(List eList)
Utility method to parse a list of subjects out of a list of elements.

Field Detail

DC_NS

private static final Namespace DC_NS

RDF_NS

private static final Namespace RDF_NS

RDF_URI

private static final String RDF_URI

TAXO_NS

private static final Namespace TAXO_NS

TAXO_URI

private static final String TAXO_URI

Method Detail

getDCNamespace

private final Namespace getDCNamespace()

getNamespaceUri

public final String getNamespaceUri()

getRDFNamespace

private final Namespace getRDFNamespace()

getTaxonomy

protected final String getTaxonomy(Element desc)
Utility method to parse a taxonomy from an element.

Parameters: desc the taxonomy description element.

Returns: the string contained in the resource of the element.

getTaxonomyNamespace

private final Namespace getTaxonomyNamespace()

parse

public Module parse(Element dcRoot)
Parse an element tree and return the module found in it.

Parameters: dcRoot the root element containing the module elements.

Returns: the module parsed from the element tree, null if none.

parseElementList

protected final List parseElementList(List eList)
Utility method to parse a list of strings out of a list of elements.

Parameters: eList the list of elements to parse.

Returns: the list of strings

parseElementListDate

protected final List parseElementListDate(List eList)
Utility method to parse a list of dates out of a list of elements.

Parameters: eList the list of elements to parse.

Returns: the list of dates.

parseSubjects

protected final List parseSubjects(List eList)
Utility method to parse a list of subjects out of a list of elements.

Parameters: eList the element list to parse.

Returns: a list of subjects parsed from the elements.

Copyright © Sun Microsystems. All Rights Reserved.