public abstract class BaseWireFeedGenerator extends java.lang.Object implements WireFeedGenerator
Modifier and Type | Field and Description |
---|---|
private org.jdom2.Namespace[] |
allModuleNamespaces |
private static java.lang.String |
FEED_MODULE_GENERATORS_POSFIX_KEY
[TYPE].feed.ModuleParser.classes= [className] ...
|
private ModuleGenerators |
feedModuleGenerators |
private static java.lang.String |
ITEM_MODULE_GENERATORS_POSFIX_KEY
[TYPE].item.ModuleParser.classes= [className] ...
|
private ModuleGenerators |
itemModuleGenerators |
private static java.lang.String |
PERSON_MODULE_GENERATORS_POSFIX_KEY
[TYPE].person.ModuleParser.classes= [className] ...
|
private ModuleGenerators |
personModuleGenerators |
private java.lang.String |
type |
Modifier | Constructor and Description |
---|---|
protected |
BaseWireFeedGenerator(java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
private static void |
collectUsedPrefixes(org.jdom2.Element el,
java.util.Set<java.lang.String> collector) |
protected void |
generateFeedModules(java.util.List<Module> modules,
org.jdom2.Element feed) |
protected void |
generateForeignMarkup(org.jdom2.Element element,
java.util.List<org.jdom2.Element> foreignElements) |
void |
generateItemModules(java.util.List<Module> modules,
org.jdom2.Element item) |
protected void |
generateModuleNamespaceDefs(org.jdom2.Element root) |
void |
generatePersonModules(java.util.List<Module> modules,
org.jdom2.Element person) |
java.lang.String |
getType()
Returns the type of feed the generator creates.
|
protected static void |
purgeUnusedNamespaceDeclarations(org.jdom2.Element root)
Purging unused declarations is less optimal, performance-wise, than never adding them in the
first place.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generate
private static final java.lang.String FEED_MODULE_GENERATORS_POSFIX_KEY
private static final java.lang.String ITEM_MODULE_GENERATORS_POSFIX_KEY
private static final java.lang.String PERSON_MODULE_GENERATORS_POSFIX_KEY
private final java.lang.String type
private final ModuleGenerators feedModuleGenerators
private final ModuleGenerators itemModuleGenerators
private final ModuleGenerators personModuleGenerators
private final org.jdom2.Namespace[] allModuleNamespaces
public java.lang.String getType()
WireFeedGenerator
getType
in interface WireFeedGenerator
for details on the format of this string.
protected void generateModuleNamespaceDefs(org.jdom2.Element root)
protected void generateFeedModules(java.util.List<Module> modules, org.jdom2.Element feed)
public void generateItemModules(java.util.List<Module> modules, org.jdom2.Element item)
public void generatePersonModules(java.util.List<Module> modules, org.jdom2.Element person)
protected void generateForeignMarkup(org.jdom2.Element element, java.util.List<org.jdom2.Element> foreignElements)
protected static void purgeUnusedNamespaceDeclarations(org.jdom2.Element root)
private static void collectUsedPrefixes(org.jdom2.Element el, java.util.Set<java.lang.String> collector)