Added missing serialVersionUIDs

This commit is contained in:
Patrick Gotthard 2014-04-12 16:34:44 +02:00
parent cfed974545
commit a8a0290187
5 changed files with 80 additions and 66 deletions

View file

@ -24,10 +24,13 @@ import com.sun.syndication.feed.impl.ToStringBean;
/**
* This is a simple name-value pair attribute for outlines.
*
*
* @author <a href="mailto:cooper@screaming-penguin.com">Robert "kebernet" Cooper</a>
*/
public class Attribute implements Cloneable, Serializable {
private static final long serialVersionUID = 1L;
private String _name;
private String _value;
@ -38,7 +41,7 @@ public class Attribute implements Cloneable, Serializable {
/**
* Creates a new instance of Attribute.
*
*
* @param name name of the attribute.
* @param value value of the attribute.
*/
@ -52,7 +55,7 @@ public class Attribute implements Cloneable, Serializable {
/**
* name of the attribute.
*
*
* @param name name of the attribute.
*/
public void setName(final String name) {
@ -61,7 +64,7 @@ public class Attribute implements Cloneable, Serializable {
/**
* name of the attribute.
*
*
* @return name of the attribute.
*/
public String getName() {
@ -70,7 +73,7 @@ public class Attribute implements Cloneable, Serializable {
/**
* value of the attribute.
*
*
* @param value value of the attribute.
*/
public void setValue(final String value) {
@ -79,7 +82,7 @@ public class Attribute implements Cloneable, Serializable {
/**
* value of the attribute.
*
*
* @return value of the attribute.
*/
public String getValue() {

View file

@ -25,10 +25,13 @@ import com.sun.syndication.feed.WireFeed;
/**
* This class represents the root of an OPML 1/2 feed and contains the elements that may appear in the &lt;head&gt; tag of the feed.
*
*
* @author <a href="mailto:cooper@screaming-penguin.com"> Robert "kebernet" Cooper</a>
*/
public class Opml extends WireFeed {
private static final long serialVersionUID = 1L;
private Date _created;
private Date _modified;
private Integer _verticalScrollState;
@ -51,7 +54,7 @@ public class Opml extends WireFeed {
/**
* <dateCreated> is a date-time, indicating when the document was created.
*
*
* @param created date-time, indicating when the document was created.
*/
public void setCreated(final Date created) {
@ -60,7 +63,7 @@ public class Opml extends WireFeed {
/**
* &lt;dateCreated&gt; is a date-time, indicating when the document was created.
*
*
* @return date-time, indicating when the document was created.
*/
public Date getCreated() {
@ -70,7 +73,7 @@ public class Opml extends WireFeed {
/**
* (OPML 2) &lt;docs&gt; is the http address of documentation for the format used in the OPML file. It's probably a pointer to <a
* href="http://www.opml.org/spec2">this page</a> for people who might stumble across the file on a web server 25 years from now and wonder what it is.
*
*
* @param docs http address of documentation for the format used
*/
public void setDocs(final String docs) {
@ -80,7 +83,7 @@ public class Opml extends WireFeed {
/**
* (OPML 2) &lt;docs&gt; is the http address of documentation for the format used in the OPML file. It's probably a pointer to <a
* href="http://www.opml.org/spec2">this page</a> for people who might stumble across the file on a web server 25 years from now and wonder what it is.
*
*
* @return http address of documentation for the format used
*/
public String getDocs() {
@ -91,7 +94,7 @@ public class Opml extends WireFeed {
* &lt;expansionState&gt;is a comma-separated list of line numbers that are expanded. The line numbers in the list tell you which headlines to expand. The
* order is important. For each element in the list, X, starting at the first summit, navigate flatdown X times and expand. Repeat for each element in the
* list.
*
*
* @param expansionState int array containing expanded elements.
*/
public void setExpansionState(final int[] expansionState) {
@ -102,7 +105,7 @@ public class Opml extends WireFeed {
* &lt;expansionState&gt; is a comma-separated list of line numbers that are expanded. The line numbers in the list tell you which headlines to expand. The
* order is important. For each element in the list, X, starting at the first summit, navigate flatdown X times and expand. Repeat for each element in the
* list.
*
*
* @return int array containing expanded elements.
*/
public int[] getExpansionState() {
@ -111,7 +114,7 @@ public class Opml extends WireFeed {
/**
* &lt;dateModified&gt; is a date-time, indicating when the document was last modified.
*
*
* @param modified date-time, indicating when the document was last modified.
*/
public void setModified(final Date modified) {
@ -120,7 +123,7 @@ public class Opml extends WireFeed {
/**
* &lt;dateModified&gt; is a date-time, indicating when the document was last modified.
*
*
* @return date-time, indicating when the document was last modified.
*/
public Date getModified() {
@ -129,7 +132,7 @@ public class Opml extends WireFeed {
/**
* Root level Outline object that should appear in the &lt;body&gt;
*
*
* @param outlines Root level Outline object that should appear in the &lt;body&gt;
*/
public void setOutlines(final List outlines) {
@ -138,7 +141,7 @@ public class Opml extends WireFeed {
/**
* Root level Outline object that should appear in the &lt;body&gt;
*
*
* @return Root level Outline object that should appear in the &lt;body&gt;
*/
public List getOutlines() {
@ -151,7 +154,7 @@ public class Opml extends WireFeed {
/**
* &lt;ownerEmail&gt; is a string, the email address of the owner of the document.
*
*
* @param ownerEmail the email address of the owner of the document.
*/
public void setOwnerEmail(final String ownerEmail) {
@ -160,7 +163,7 @@ public class Opml extends WireFeed {
/**
* &lt;ownerEmail&gt; is a string, the email address of the owner of the document.
*
*
* @return the email address of the owner of the document.
*/
public String getOwnerEmail() {
@ -170,7 +173,7 @@ public class Opml extends WireFeed {
/**
* (OPML 2) &lt;ownerId&gt; is the http address of a web page that contains <strike>an HTML</strike> a form that allows a human reader to communicate with
* the author of the document via email or other means.
*
*
* @param ownerId http address of a web page that contains <strike>an HTML</strike> a form that allows a human reader to communicate with the author of the
* document via email or other means.
*/
@ -181,7 +184,7 @@ public class Opml extends WireFeed {
/**
* (OPML 2) &lt;ownerId&gt; is the http address of a web page that contains <strike>an HTML</strike> a form that allows a human reader to communicate with
* the author of the document via email or other means.
*
*
* @return http address of a web page that contains <strike>an HTML</strike> a form that allows a human reader to communicate with the author of the
* document via email or other means.
*/
@ -191,7 +194,7 @@ public class Opml extends WireFeed {
/**
* &lt;ownerName&gt; is a string, the owner of the document.
*
*
* @param ownerName the owner of the document.
*/
public void setOwnerName(final String ownerName) {
@ -200,7 +203,7 @@ public class Opml extends WireFeed {
/**
* &lt;ownerName&gt; is a string, the owner of the document.
*
*
* @return the owner of the document.
*/
public String getOwnerName() {
@ -209,7 +212,7 @@ public class Opml extends WireFeed {
/**
* &lt;title&gt; is the title of the document.
*
*
* @param title title of the document.
*/
public void setTitle(final String title) {
@ -218,7 +221,7 @@ public class Opml extends WireFeed {
/**
* &lt;title&gt; is the title of the document.
*
*
* @return title of the document.
*/
public String getTitle() {
@ -228,7 +231,7 @@ public class Opml extends WireFeed {
/**
* &lt;vertScrollState&gt; is a number, saying which line of the outline is displayed on the top line of the window. This number is calculated with the
* expansion state already applied.
*
*
* @param verticalScrollState which line of the outline is displayed on the top line of the window.
*/
public void setVerticalScrollState(final Integer verticalScrollState) {
@ -238,7 +241,7 @@ public class Opml extends WireFeed {
/**
* &lt;vertScrollState&gt; is a number, saying which line of the outline is displayed on the top line of the window. This number is calculated with the
* expansion state already applied.
*
*
* @return which line of the outline is displayed on the top line of the window. This number is calculated with the expansion state already applied.
*/
public Integer getVerticalScrollState() {
@ -247,7 +250,7 @@ public class Opml extends WireFeed {
/**
* &lt;windowBottom&gt; is a number, the pixel location of the bottom edge of the window.
*
*
* @param windowBottom the pixel location of the bottom edge of the window.
*/
public void setWindowBottom(final Integer windowBottom) {
@ -256,7 +259,7 @@ public class Opml extends WireFeed {
/**
* &lt;windowBottom&gt; is a number, the pixel location of the bottom edge of the window.
*
*
* @return the pixel location of the bottom edge of the window.
*/
public Integer getWindowBottom() {
@ -265,7 +268,7 @@ public class Opml extends WireFeed {
/**
* &lt;windowLeft&gt; is a number, the pixel location of the left edge of the window.
*
*
* @param windowLeft the pixel location of the left edge of the window.
*/
public void setWindowLeft(final Integer windowLeft) {
@ -274,7 +277,7 @@ public class Opml extends WireFeed {
/**
* &lt;windowLeft&gt; is a number, the pixel location of the left edge of the window.
*
*
* @return the pixel location of the left edge of the window.
*/
public Integer getWindowLeft() {
@ -283,7 +286,7 @@ public class Opml extends WireFeed {
/**
* &lt;windowRight&gt; is a number, the pixel location of the right edge of the window.
*
*
* @param windowRight the pixel location of the right edge of the window.
*/
public void setWindowRight(final Integer windowRight) {
@ -292,7 +295,7 @@ public class Opml extends WireFeed {
/**
* &lt;windowRight&gt; is a number, the pixel location of the right edge of the window.
*
*
* @return the pixel location of the right edge of the window.
*/
public Integer getWindowRight() {
@ -301,7 +304,7 @@ public class Opml extends WireFeed {
/**
* &lt;windowTop&gt; is a number, the pixel location of the top edge of the window.
*
*
* @param windowTop the pixel location of the top edge of the window.
*/
public void setWindowTop(final Integer windowTop) {
@ -310,7 +313,7 @@ public class Opml extends WireFeed {
/**
* &lt;windowTop&gt; is a number, the pixel location of the top edge of the window.
*
*
* @return the pixel location of the top edge of the window.
*/
public Integer getWindowTop() {

View file

@ -29,10 +29,13 @@ import com.sun.syndication.feed.impl.ToStringBean;
/**
* This class represents an OPML outline element.
*
*
* @author <a href="mailto:cooper@screaming-penguin.com">Robert "kebernet" Cooper</a>
*/
public class Outline implements Cloneable, Serializable {
private static final long serialVersionUID = 1L;
private Date _created;
private List _attributes;
private List _categories;
@ -51,7 +54,7 @@ public class Outline implements Cloneable, Serializable {
/**
* Creates a new outline with the specified type and text values.
*
*
* @param type type attribute value/
* @param text text attribute value
*/
@ -63,7 +66,7 @@ public class Outline implements Cloneable, Serializable {
/**
* Creates an outline with the given title, xmlUrl and htmlUrl. This is traditionally used for aggregator feed lists and will get a type of "rss".
*
*
* @param title Title of the entry.
* @param xmlUrl link to XML file.
* @param htmlUrl link to html page.
@ -85,7 +88,7 @@ public class Outline implements Cloneable, Serializable {
/**
* List of attributes on this outline excluding the "common types" for the specification.
*
*
* @param attributes List of attributes on this outline.
*/
public void setAttributes(final List attributes) {
@ -94,7 +97,7 @@ public class Outline implements Cloneable, Serializable {
/**
* List of attributes on this outline excluding the "common types" for the specification.
*
*
* @return List of attributes on this outline.
*/
public List getAttributes() {
@ -108,7 +111,7 @@ public class Outline implements Cloneable, Serializable {
/**
* isBreakpoint is a string, either "true" or "false", indicating whether a breakpoint is set on this outline. This attribute is mainly necessary for
* outlines used to edit scripts. If it's not present, the value is false.
*
*
* @param breakpoint whether a breakpoint is set on this outline.
*/
public void setBreakpoint(final boolean breakpoint) {
@ -118,7 +121,7 @@ public class Outline implements Cloneable, Serializable {
/**
* isBreakpoint is a string, either "true" or "false", indicating whether a breakpoint is set on this outline. This attribute is mainly necessary for
* outlines used to edit scripts. If it's not present, the value is false.
*
*
* @return whether a breakpoint is set on this outline
*/
public boolean isBreakpoint() {
@ -127,7 +130,7 @@ public class Outline implements Cloneable, Serializable {
/**
* (OPML 2) A List of Strings indicating values in the category attribute.
*
*
* @param categories (OPML 2) A List of Strings indicating values in the category attribute.
*/
public void setCategories(final List categories) {
@ -136,7 +139,7 @@ public class Outline implements Cloneable, Serializable {
/**
* (OPML 2) A List of Strings indicating values in the category attribute.
*
*
* @return (OPML 2) A List of Strings indicating values in the category attribute.
*/
public List getCategories() {
@ -149,7 +152,7 @@ public class Outline implements Cloneable, Serializable {
/**
* A list of sub-outlines for this entry.
*
*
* @param children A list of sub-outlines for this entry.
*/
public void setChildren(final List children) {
@ -158,7 +161,7 @@ public class Outline implements Cloneable, Serializable {
/**
* A list of sub-outlines for this entry.
*
*
* @return A list of sub-outlines for this entry.
*/
public List getChildren() {
@ -172,7 +175,7 @@ public class Outline implements Cloneable, Serializable {
/**
* isComment is a string, either "true" or "false", indicating whether the outline is commented or not. By convention if an outline is commented, all
* subordinate outlines are considered to also be commented. If it's not present, the value is false.
*
*
* @param comment whether the outline is commented
*/
public void setComment(final boolean comment) {
@ -182,7 +185,7 @@ public class Outline implements Cloneable, Serializable {
/**
* isComment is a string, either "true" or "false", indicating whether the outline is commented or not. By convention if an outline is commented, all
* subordinate outlines are considered to also be commented. If it's not present, the value is false.
*
*
* @return whether the outline is commented
*/
public boolean isComment() {
@ -191,7 +194,7 @@ public class Outline implements Cloneable, Serializable {
/**
* (OPML 2) created is the date-time that the outline node was created.
*
*
* @param created date-time that the outline node was created.
*/
public void setCreated(final Date created) {
@ -200,7 +203,7 @@ public class Outline implements Cloneable, Serializable {
/**
* (OPML 2) created is the date-time that the outline node was created.
*
*
* @return date-time that the outline node was created.
*/
public Date getCreated() {
@ -209,7 +212,7 @@ public class Outline implements Cloneable, Serializable {
/**
* A convenience method to return the value of the url attribute.
*
*
* @return value of the htmlUrl attribute.
*/
public String getUrl() {
@ -218,7 +221,7 @@ public class Outline implements Cloneable, Serializable {
/**
* A convenience method to return the value of the htmlUrl attribute.
*
*
* @return value of the htmlUrl attribute.
*/
public String getHtmlUrl() {
@ -239,7 +242,7 @@ public class Outline implements Cloneable, Serializable {
/**
* The "text" attribute of the outline.
*
*
* @param text The "text" attribute of the outline.
*/
public void setText(final String text) {
@ -248,7 +251,7 @@ public class Outline implements Cloneable, Serializable {
/**
* The "text" attribute of the outline.
*
*
* @return The "text" attribute of the outline.
*/
public String getText() {
@ -257,7 +260,7 @@ public class Outline implements Cloneable, Serializable {
/**
* The "title" attribute of the outline.
*
*
* @param title The "title" attribute of the outline.
*/
public void setTitle(final String title) {
@ -266,7 +269,7 @@ public class Outline implements Cloneable, Serializable {
/**
* The "title" attribute of the outline.
*
*
* @return The "title" attribute of the outline.
*/
public String getTitle() {
@ -275,7 +278,7 @@ public class Outline implements Cloneable, Serializable {
/**
* The "type" attribute of the outline.
*
*
* @param type The "type" attribute of the outline.
*/
public void setType(final String type) {
@ -284,7 +287,7 @@ public class Outline implements Cloneable, Serializable {
/**
* The "type" attribute of the outline.
*
*
* @return The "type" attribute of the outline.
*/
public String getType() {
@ -293,7 +296,7 @@ public class Outline implements Cloneable, Serializable {
/**
* A convenience method to return the value of the xmlUrl attribute.
*
*
* @return value of the xmlUrl attribute.
*/
public String getXmlUrl() {
@ -302,7 +305,7 @@ public class Outline implements Cloneable, Serializable {
/**
* Returns the value of an attribute on the outline or null.
*
*
* @param name name of the attribute.
*/
public String getAttributeValue(final String name) {

View file

@ -42,7 +42,7 @@ import com.sun.syndication.feed.synd.SyndPerson;
import com.sun.syndication.feed.synd.SyndPersonImpl;
/**
*
*
* @author cooper
*/
public class ConverterForOPML10 implements Converter {
@ -71,7 +71,7 @@ public class ConverterForOPML10 implements Converter {
* <p>
* It assumes the given SyndFeedImpl has no properties set.
* <p>
*
*
* @param feed real feed to copy/convert.
* @param syndFeed the SyndFeedImpl that will contain the copied/converted values of the real feed.
*/
@ -190,10 +190,10 @@ public class ConverterForOPML10 implements Converter {
/**
* Creates real feed with a deep copy/conversion of the values of a SyndFeedImpl.
* <p>
*
*
* @param syndFeed SyndFeedImpl to copy/convert value from.
* @return a real feed with copied/converted values of the SyndFeedImpl.
*
*
*/
@Override
public WireFeed createRealFeed(final SyndFeed syndFeed) {
@ -325,7 +325,7 @@ public class ConverterForOPML10 implements Converter {
/**
* Returns the type (version) of the real feed this converter handles.
* <p>
*
*
* @return the real feed type.
* @see WireFeed for details on the format of this string.
* <p>
@ -346,6 +346,9 @@ public class ConverterForOPML10 implements Converter {
}
private static class TreeContext extends Stack {
private static final long serialVersionUID = 1L;
TreeContext() {
super();
}

View file

@ -13,11 +13,13 @@ import com.sun.syndication.feed.synd.SyndCategory;
import com.sun.syndication.feed.synd.SyndCategoryImpl;
/**
*
*
* @author cooper
*/
public class TreeCategoryImpl extends SyndCategoryImpl {
private static final long serialVersionUID = 1L;
/** Creates a new instance of TreeCategoryImpl */
public TreeCategoryImpl() {
super();