Top Description Fields Constructors Methods
com.rometools.rome.feed.atom

public Class Generator

extends Object
implements Cloneable, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, java.lang.Cloneable
Imports
java.io.Serializable, java.util.Collections, com.rometools.rome.feed.impl.CloneableBean, .EqualsBean, .ToStringBean

Bean for the generator element of Atom feeds.

Field Summary

Modifier and TypeField and Description
private static final long
private String
private String
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

a clone of the object.
clone
()

Overrides java.lang.Object.clone.

Creates a deep 'bean' clone of the object.
public boolean

Returns:

true if 'this' object is equal to the 'other' object.
equals
(final Object
he reference object with which to compare.
other
)

Overrides java.lang.Object.equals.

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

Returns:

the generator URL, null if none.
getUrl
()

Returns the generator URL.

public String

Returns:

the generator value, null if none.
getValue
()

Returns the generator value.

public String

Returns:

the generator version, null if none.
getVersion
()

Returns the generator version.

public int

Returns:

the hashcode of the bean object.
hashCode
()

Overrides java.lang.Object.hashCode.

Returns a hashcode value for the object.
public void
setUrl(final String
the generator URL, null if none.
url
)

Sets the generator URL.

public void
setValue(final String
the generator value, null if none.
value
)

Sets the generator value.

public void
setVersion(final String
the generator version, null if none.
version
)

Sets the generator version.

public String

Returns:

String representation for the object.
toString
()

Overrides java.lang.Object.toString.

Returns the String representation for the object.
Inherited from java.lang.Object:
finalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID
urlback to summary
private String url
valueback to summary
private String value
versionback to summary
private String version

Constructor Detail

Generatorback to summary
public Generator()

Method Detail

cloneback to summary
public Object clone() throws CloneNotSupportedException

Overrides java.lang.Object.clone.

Creates a deep 'bean' clone of the object.

Returns:Object

a clone of the object.

Annotations
@Override
Exceptions
CloneNotSupportedException:
thrown if an element of the object cannot be cloned.
equalsback to summary
public boolean equals(final Object other)

Overrides java.lang.Object.equals.

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

Parameters
other:Object

he reference object with which to compare.

Returns:boolean

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

Annotations
@Override
getUrlback to summary
public String getUrl()

Returns the generator URL.

Returns:String

the generator URL, null if none.

getValueback to summary
public String getValue()

Returns the generator value.

Returns:String

the generator value, null if none.

getVersionback to summary
public String getVersion()

Returns the generator version.

Returns:String

the generator version, null if none.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns a hashcode value for the object.

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

Returns:int

the hashcode of the bean object.

Annotations
@Override
setUrlback to summary
public void setUrl(final String url)

Sets the generator URL.

Parameters
url:String

the generator URL, null if none.

setValueback to summary
public void setValue(final String value)

Sets the generator value.

Parameters
value:String

the generator value, null if none.

setVersionback to summary
public void setVersion(final String version)

Sets the generator version.

Parameters
version:String

the generator version, null if none.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns the String representation for the object.

Returns:String

String representation for the object.

Annotations
@Override