com.sun.syndication.feed.atom

Class Generator

public class Generator extends Object implements Cloneable, Serializable

Bean for the generator element of Atom feeds.

Author: Alejandro Abdelnur

Field Summary
ObjectBean_objBean
String_url
String_value
String_version
Constructor Summary
Generator()
Default constructor.
Method Summary
Objectclone()
Creates a deep 'bean' clone of the object.
booleanequals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
StringgetUrl()
Returns the generator URL.
StringgetValue()
Returns the generator value.
StringgetVersion()
Returns the generator version.
inthashCode()
Returns a hashcode value for the object.
voidsetUrl(String url)
Sets the generator URL.
voidsetValue(String value)
Sets the generator value.
voidsetVersion(String version)
Sets the generator version.
StringtoString()
Returns the String representation for the object.

Field Detail

_objBean

private ObjectBean _objBean

_url

private String _url

_value

private String _value

_version

private String _version

Constructor Detail

Generator

public Generator()
Default constructor. All properties are set to null.

Method Detail

clone

public Object clone()
Creates a deep 'bean' clone of the object.

Returns: a clone of the object.

Throws: CloneNotSupportedException thrown if an element of the object cannot be cloned.

equals

public boolean equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.

Parameters: other he reference object with which to compare.

Returns: true if 'this' object is equal to the 'other' object.

getUrl

public String getUrl()
Returns the generator URL.

Returns: the generator URL, null if none.

getValue

public String getValue()
Returns the generator value.

Returns: the generator value, null if none.

getVersion

public String getVersion()
Returns the generator version.

Returns: the generator version, null if none.

hashCode

public int hashCode()
Returns a hashcode value for the object.

It follows the contract defined by the Object hashCode() method.

Returns: the hashcode of the bean object.

setUrl

public void setUrl(String url)
Sets the generator URL.

Parameters: url the generator URL, null if none.

setValue

public void setValue(String value)
Sets the generator value.

Parameters: value the generator value, null if none.

setVersion

public void setVersion(String version)
Sets the generator version.

Parameters: version the generator version, null if none.

toString

public String toString()
Returns the String representation for the object.

Returns: String representation for the object.

Copyright © Sun Microsystems. All Rights Reserved.