- *
+ *
* @param feed the feed bean to generate the XML document from.
* @return the generated XML document (JDOM).
* @throws IllegalArgumentException thrown if the type of the given feed bean does not match with the type of the WireFeedGenerator.
@@ -146,10 +146,10 @@ public class OPML10Generator extends BaseWireFeedGenerator implements WireFeedGe
addNotNullAttribute(e, "isComment", "true");
}
- final List atts = Collections.synchronizedList(outline.getAttributes());
+ final List
* It checks if the given document if the type of feeds the parser understands.
*
- *
+ *
* @param document XML Document (JDOM) to check if it can be parsed by this parser.
* @return true if the parser know how to parser this feed, false otherwise.
*/
@@ -74,7 +74,7 @@ public class OPML10Parser extends BaseWireFeedParser implements WireFeedParser {
/**
* Parses an XML document (JDOM Document) into a feed bean.
*
- *
+ *
* @param document XML document (JDOM) to parse.
* @param validate indicates if the feed should be strictly validated (NOT YET IMPLEMENTED).
* @return the resulting feed bean.
@@ -177,11 +177,11 @@ public class OPML10Parser extends BaseWireFeedParser implements WireFeedParser {
outline.setType(e.getAttributeValue("type"));
outline.setTitle(e.getAttributeValue("title"));
- final List jAttributes = e.getAttributes();
- final ArrayList attributes = new ArrayList();
+ final List
* It checks if the given document if the type of feeds the parser understands.
*
- *
+ *
* @param document XML Document (JDOM) to check if it can be parsed by this parser.
* @return true if the parser know how to parser this feed, false otherwise.
*/
@@ -54,7 +54,7 @@ public class OPML20Parser extends OPML10Parser {
if (e.getName().equals("opml")
&& (e.getChild("head") != null && e.getChild("head").getChild("docs") != null || e.getAttributeValue("version") != null
- && e.getAttributeValue("version").equals("2.0") || e.getChild("head") != null && e.getChild("head").getChild("ownerId") != null)) {
+ && e.getAttributeValue("version").equals("2.0") || e.getChild("head") != null && e.getChild("head").getChild("ownerId") != null)) {
return true;
}
@@ -64,7 +64,7 @@ public class OPML20Parser extends OPML10Parser {
/**
* Parses an XML document (JDOM Document) into a feed bean.
*
- *
+ *
* @param document XML document (JDOM) to parse.
* @param validate indicates if the feed should be strictly validated (NOT YET IMPLEMENTED).
* @return the resulting feed bean.
@@ -102,10 +102,10 @@ public class OPML20Parser extends OPML10Parser {
retValue.setCreated(DateParser.parseRFC822(e.getAttributeValue("created"), locale));
}
- final List atts = retValue.getAttributes();
+ final List