| Modifier and Type | Field and Description |
|---|---|
| private final Namespace[] | |
| private static final String | FEED_MODULE_GENERATORS_POSFIX_KEY
[TYPE].feed.ModuleParser.classes= [className] ... |
| private final ModuleGenerators | |
| private static final String | ITEM_MODULE_GENERATORS_POSFIX_KEY
[TYPE].item.ModuleParser.classes= [className] ... |
| private final ModuleGenerators | |
| private static final String | PERSON_MODULE_GENERATORS_POSFIX_KEY
[TYPE].person.ModuleParser.classes= [className] ... |
| private final ModuleGenerators | |
| private final String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| protected void | |
| protected void | |
| public void | |
| protected void | |
| public void | |
| public String | getType()
Implements com. |
| protected static void | purgeUnusedNamespaceDeclarations(final Element root)
Purging unused declarations is less optimal, performance-wise, than never adding them in the first place. |
| allModuleNamespaces | back to summary |
|---|---|
| private final Namespace[] allModuleNamespaces | |
| FEED_MODULE_GENERATORS_POSFIX_KEY | back to summary |
|---|---|
| private static final String FEED_MODULE_GENERATORS_POSFIX_KEY [TYPE].feed.ModuleParser.classes= [className] ... | |
| feedModuleGenerators | back to summary |
|---|---|
| private final ModuleGenerators feedModuleGenerators | |
| ITEM_MODULE_GENERATORS_POSFIX_KEY | back to summary |
|---|---|
| private static final String ITEM_MODULE_GENERATORS_POSFIX_KEY [TYPE].item.ModuleParser.classes= [className] ... | |
| itemModuleGenerators | back to summary |
|---|---|
| private final ModuleGenerators itemModuleGenerators | |
| PERSON_MODULE_GENERATORS_POSFIX_KEY | back to summary |
|---|---|
| private static final String PERSON_MODULE_GENERATORS_POSFIX_KEY [TYPE].person.ModuleParser.classes= [className] ... | |
| personModuleGenerators | back to summary |
|---|---|
| private final ModuleGenerators personModuleGenerators | |
| type | back to summary |
|---|---|
| private final String type | |
| BaseWireFeedGenerator | back to summary |
|---|---|
| protected BaseWireFeedGenerator(final String type) | |
| collectUsedPrefixes | back to summary |
|---|---|
| private static void collectUsedPrefixes(final Element el, final Set<String> collector) | |
| generateFeedModules | back to summary |
|---|---|
| protected void generateFeedModules(final List<Module> modules, final Element feed) | |
| generateForeignMarkup | back to summary |
|---|---|
| protected void generateForeignMarkup(final Element element, final List<Element> foreignElements) | |
| generateItemModules | back to summary |
|---|---|
| public void generateItemModules(final List<Module> modules, final Element item) | |
| generateModuleNamespaceDefs | back to summary |
|---|---|
| protected void generateModuleNamespaceDefs(final Element root) | |
| generatePersonModules | back to summary |
|---|---|
| public void generatePersonModules(final List<Module> modules, final Element person) | |
| getType | back to summary |
|---|---|
| public String getType() Implements com. Doc from com. Returns the type of feed the generator creates.
| |
| purgeUnusedNamespaceDeclarations | back to summary |
|---|---|
| protected static void purgeUnusedNamespaceDeclarations(final Element root) Purging unused declarations is less optimal, performance-wise, than never adding them in the first place. So, we should still ask the ROME guys to fix their code (not adding dozens of unnecessary module declarations). Having said that: purging them here, before XML generation, is more efficient than parsing and re-molding the XML after ROME generates it. Note that the calling app could still add declarations/modules to the Feed tree after this. Which is fine. But those modules are then responsible for crawling to the root of the tree, at generate() time, to make sure their namespace declarations are present. | |