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

public Class Link

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, com.rometools.utils.Alternatives

Bean for link elements of Atom feeds.

Field Summary

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

Constructor Summary

AccessConstructor and Description

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 link href, null if none.
getHref
()

Returns the link href.

public String

Returns:

Returns the hreflang.
getHreflang
()

Returns the hreflang

public String
public long

Returns:

Returns the length.
getLength
()

Returns the length

public String

Returns:

the link rel, null if none.
getRel
()

Returns the link rel.

public String

Returns:

the link title, null if none.
getTitle
()

Returns the link title.

public String

Returns:

the link type, null if none.
getType
()

Returns the link type.

public int

Returns:

the hashcode of the bean object.
hashCode
()

Overrides java.lang.Object.hashCode.

Returns a hashcode value for the object.
public void
setHref(final String
the link href, null if none.
href
)

Sets the link href.

public void
setHreflang(final String
The hreflang to set.
hreflang
)

Set the hreflang

public void
setHrefResolved(final String hrefResolved)

public void
setLength(final long
The length to set.
length
)

Set the length

public void
setRel(final String
the link rel,, null if none.
rel
)

Sets the link rel.

public void
setTitle(final String
the link title, null if none.
title
)

Sets the link title.

public void
setType(final String
the link type, null if none.
type
)

Sets the link type.

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

hrefback to summary
private String href
hreflangback to summary
private String hreflang
hrefResolvedback to summary
private String hrefResolved
lengthback to summary
private long length
relback to summary
private String rel
serialVersionUIDback to summary
private static final long serialVersionUID
titleback to summary
private String title
typeback to summary
private String type

Constructor Detail

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
getHrefback to summary
public String getHref()

Returns the link href.

Returns:String

the link href, null if none.

getHreflangback to summary
public String getHreflang()

Returns the hreflang

Returns:String

Returns the hreflang.

Since
Atom 1.0
getHrefResolvedback to summary
public String getHrefResolved()
getLengthback to summary
public long getLength()

Returns the length

Returns:long

Returns the length.

getRelback to summary
public String getRel()

Returns the link rel.

Returns:String

the link rel, null if none.

getTitleback to summary
public String getTitle()

Returns the link title.

Returns:String

the link title, null if none.

getTypeback to summary
public String getType()

Returns the link type.

Returns:String

the link type, 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
setHrefback to summary
public void setHref(final String href)

Sets the link href.

Parameters
href:String

the link href, null if none.

setHreflangback to summary
public void setHreflang(final String hreflang)

Set the hreflang

Parameters
hreflang:String

The hreflang to set.

Since
Atom 1.0
setHrefResolvedback to summary
public void setHrefResolved(final String hrefResolved)
setLengthback to summary
public void setLength(final long length)

Set the length

Parameters
length:long

The length to set.

setRelback to summary
public void setRel(final String rel)

Sets the link rel.

Parameters
rel:String

the link rel,, null if none.

setTitleback to summary
public void setTitle(final String title)

Sets the link title.

Parameters
title:String

the link title, null if none.

setTypeback to summary
public void setType(final String type)

Sets the link type.

Parameters
type:String

the link type, 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