com.sun.syndication.feed.atom

Class Person

public class Person extends Object implements Cloneable, Serializable

Bean for person elements of Atom feeds.

Author: Alejandro Abdelnur Dave Johnson (updated for Atom 1.0)

Field Summary
String_email
String_name
ObjectBean_objBean
String_uri
Constructor Summary
Person()
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.
StringgetEmail()
Returns the person email.
StringgetName()
Returns the person name.
StringgetUri()
Returns the uri

StringgetUrl()
Returns the person URL (same as getUri())

inthashCode()
Returns a hashcode value for the object.
voidsetEmail(String email)
Sets the person email.
voidsetName(String name)
Sets the personname.
voidsetUri(String uri)
Set the uri

voidsetUrl(String url)
Sets the person URL (same as setUri())

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

Person

public Person()
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.

getEmail

public String getEmail()
Returns the person email.

Returns: the person email, null if none.

getName

public String getName()
Returns the person name.

Returns: the person name, null if none.

getUri

public String getUri()
Returns the uri

Returns: Returns the uri.

Since: Atom 1.0

getUrl

public String getUrl()
Returns the person URL (same as getUri())

Returns: the person URL, 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 email.

Parameters: email the person email, null if none.

setName

public void setName(String name)
Sets the personname.

Parameters: name the person name, null if none.

setUri

public void setUri(String uri)
Set the uri

Parameters: uri The uri to set.

Since: Atom 1.0

setUrl

public void setUrl(String url)
Sets the person URL (same as setUri())

Parameters: url the person URL, 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.