public interface WireFeedGenerator
WireFeedGenerator instances must thread safe.
TODO: explain how developers can plugin their own implementations.
Modifier and Type | Method and Description |
---|---|
org.jdom2.Document |
generate(WireFeed feed)
Creates an XML document (JDOM) for the given feed bean.
|
String |
getType()
Returns the type of feed the generator creates.
|
String getType()
for details on the format of this string.
org.jdom2.Document generate(WireFeed feed) throws IllegalArgumentException, FeedException
feed
- the feed bean to generate the XML document from.IllegalArgumentException
- thrown if the type of the given feed bean does not match
with the type of the WireFeedGenerator.FeedException
- thrown if the XML Document could not be created.Copyright © 2024. All rights reserved.