com.sun.syndication.feed.synd

Class SyndPersonImpl

public class SyndPersonImpl extends Object implements Serializable, SyndPerson

Bean for authors and contributors of SyndFeedImpl feeds and entries.

Author: Dave Johnson

Field Summary
String_email
String_name
ObjectBean_objBean
String_uri
Constructor Summary
SyndPersonImpl()
For implementations extending SyndContentImpl to be able to use the ObjectBean functionality with extended interfaces.
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.
StringgetEmail()
Returns the person's e-mail address.
StringgetName()
Returns the person name.
StringgetUri()
Returns the person's URI.
inthashCode()
Returns a hashcode value for the object.
voidsetEmail(String email)
Sets the person's e-mail address.
voidsetName(String name)
Sets the category name.
voidsetUri(String uri)
Sets the person's URI.
StringtoString()
Returns the String representation for the object.

Field Detail

_email

private String _email

_name

private String _name

_objBean

private ObjectBean _objBean

_uri

private String _uri

Constructor Detail

SyndPersonImpl

public SyndPersonImpl()
For implementations extending SyndContentImpl to be able to use the ObjectBean functionality with extended interfaces.

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.

getEmail

public String getEmail()
Returns the person's e-mail address.

Returns: the person's e-mail address, null if none.

getName

public String getName()
Returns the person name.

Returns: the person name, null if none.

getUri

public String getUri()
Returns the person's URI.

Returns: the person's URI, 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.

setEmail

public void setEmail(String email)
Sets the person's e-mail address.

Parameters: email The person's e-mail address to set, null if none.

setName

public void setName(String name)
Sets the category name.

Parameters: name the category name to set, null if none.

setUri

public void setUri(String uri)
Sets the person's URI.

Parameters: uri the peron's URI to set, 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.