public abstract class BaseWireFeedParser extends java.lang.Object implements WireFeedParser
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
FEED_MODULE_PARSERS_POSFIX_KEY
[TYPE].feed.ModuleParser.classes= [className] ...
|
private ModuleParsers |
feedModuleParsers |
private static java.lang.String |
ITEM_MODULE_PARSERS_POSFIX_KEY
[TYPE].item.ModuleParser.classes= [className] ...
|
private ModuleParsers |
itemModuleParsers |
private org.jdom2.Namespace |
namespace |
private static java.lang.String |
PERSON_MODULE_PARSERS_POSFIX_KEY
[TYPE].person.ModuleParser.classes= [className] ...
|
private ModuleParsers |
personModuleParsers |
private java.lang.String |
type |
Modifier | Constructor and Description |
---|---|
protected |
BaseWireFeedParser(java.lang.String type,
org.jdom2.Namespace namespace) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<org.jdom2.Element> |
extractForeignMarkup(org.jdom2.Element e,
Extendable ext,
org.jdom2.Namespace namespace) |
protected org.jdom2.Attribute |
getAttribute(org.jdom2.Element e,
java.lang.String attributeName) |
protected java.lang.String |
getAttributeValue(org.jdom2.Element e,
java.lang.String attributeName) |
protected java.lang.String |
getStyleSheet(org.jdom2.Document doc) |
java.lang.String |
getType()
Returns the type of feed the parser handles.
|
protected java.util.List<Module> |
parseFeedModules(org.jdom2.Element feedElement,
java.util.Locale locale) |
protected java.util.List<Module> |
parseItemModules(org.jdom2.Element itemElement,
java.util.Locale locale) |
protected java.util.List<Module> |
parsePersonModules(org.jdom2.Element itemElement,
java.util.Locale locale) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isMyType, parse
private static final java.lang.String FEED_MODULE_PARSERS_POSFIX_KEY
private static final java.lang.String ITEM_MODULE_PARSERS_POSFIX_KEY
private static final java.lang.String PERSON_MODULE_PARSERS_POSFIX_KEY
private final java.lang.String type
private final ModuleParsers feedModuleParsers
private final ModuleParsers itemModuleParsers
private final ModuleParsers personModuleParsers
private final org.jdom2.Namespace namespace
protected BaseWireFeedParser(java.lang.String type, org.jdom2.Namespace namespace)
public java.lang.String getType()
getType
in interface WireFeedParser
for details on the format of this string.
protected java.util.List<Module> parseFeedModules(org.jdom2.Element feedElement, java.util.Locale locale)
protected java.util.List<Module> parseItemModules(org.jdom2.Element itemElement, java.util.Locale locale)
protected java.util.List<Module> parsePersonModules(org.jdom2.Element itemElement, java.util.Locale locale)
protected java.util.List<org.jdom2.Element> extractForeignMarkup(org.jdom2.Element e, Extendable ext, org.jdom2.Namespace namespace)
protected org.jdom2.Attribute getAttribute(org.jdom2.Element e, java.lang.String attributeName)
protected java.lang.String getAttributeValue(org.jdom2.Element e, java.lang.String attributeName)
protected java.lang.String getStyleSheet(org.jdom2.Document doc)